fix: destroy --base -y fails with 'target is required' (issue #183)

Removed erroneous code that set target="" when target="--base".
This caused the early exit at 'if [ -z "$target" ]' to trigger
before reaching the actual --base handling at line 517.
This commit is contained in:
shokollm
2026-04-06 04:14:03 +00:00
parent c8bb0b36f4
commit 836fde07fc

View File

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