fix: handle missing reset named volumes

This commit is contained in:
zhaohao1004 2026-04-24 16:14:54 +08:00
parent 681654ae6e
commit 2d034bfab6

View File

@ -350,7 +350,7 @@ volume_exists() {
append_unique_volume() {
local candidate="$1"
local existing
[ -n "$candidate" ] || return
[ -n "$candidate" ] || return 0
for existing in "${RESOLVED_VOLUME_NAMES[@]}"; do
if [ "$existing" = "$candidate" ]; then