fix: cmd_destroy unbound variable $2
With set -u, using $2 without default causes error when called without arguments.
This commit is contained in:
@@ -523,7 +523,7 @@ cmd_destroy() {
|
||||
local target="${1:-}"
|
||||
local force=false
|
||||
|
||||
if [ "$2" = "-y" ]; then
|
||||
if [ "${2:-}" = "-y" ]; then
|
||||
force=true
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user