fix: destroy --base -y fails with 'target is required' (issue #183) #184
Reference in New Issue
Block a user
Delete Branch "fix/issue-183-destroy-base-requires-target"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixed
kugetsu destroy --base -ywhich was failing with "Error: target is required" in v0.2.9.Bug
The
cmd_destroy()function had code that settarget=""whentarget="--base", causing the early validation checkif [ -z "$target" ]to exit before reaching the actual--basehandling.Fix
Removed the erroneous early assignment (lines 482-484) that was clearing the target variable before the
--basecase could be handled.Changes
kugetsu-session.sh: Removed 4 lines that incorrectly clearedtargetwhen it was"--base"lgtm