fix: cmd_destroy unbound variable $2 #192
Reference in New Issue
Block a user
Delete Branch "fix/issue-cmd-destroy-unbound-var"
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?
Bug
cmd_destroyline 526 uses$2without a default:With
set -u(nounset), this causes "unbound variable" error when called without arguments:Fix
Use
${2:-}to provide empty default: