fix: cmd_destroy unbound variable $2

With set -u, using $2 without default causes error when called without arguments.
This commit is contained in:
shokollm
2026-04-06 09:24:47 +00:00
parent 119c9b8fd9
commit fd79bfa3ea

View File

@@ -523,7 +523,7 @@ cmd_destroy() {
local target="${1:-}"
local force=false
if [ "$2" = "-y" ]; then
if [ "${2:-}" = "-y" ]; then
force=true
fi