fix: validate app name in app-scoped commands

This commit is contained in:
Jose Diaz-Gonzalez
2026-09-24 18:14:53 -04:00
parent 114c6115b9
commit a4484d354b
22 changed files with 213 additions and 35 deletions

View File

@@ -10,7 +10,7 @@ cmd-domains-disable() {
[[ "$1" == "$cmd" ]] && shift 1
declare APP="$1"
[[ "$APP" == "--all" ]] && verify_app_name "$APP"
[[ "$APP" == "--all" ]] || verify_app_name "$APP"
fn-domains-disable "$APP"
}

View File

@@ -10,7 +10,7 @@ cmd-domains-enable() {
[[ "$1" == "$cmd" ]] && shift 1
declare APP="$1"
[[ "$APP" == "--all" ]] && verify_app_name "$APP"
[[ "$APP" == "--all" ]] || verify_app_name "$APP"
fn-domains-enable "$APP"
}