fix: correct position of app name check for nginx:validate-config
This commit is contained in:
@@ -112,6 +112,5 @@ cmd-nginx-validate-config() {
|
||||
fi
|
||||
declare APP="$1" FLAG="$2"
|
||||
|
||||
verify_app_name "$APP"
|
||||
validate_nginx "$APP" "$FLAG"
|
||||
}
|
||||
|
||||
@@ -99,6 +99,7 @@ validate_nginx() {
|
||||
fi
|
||||
|
||||
if [[ -n "$APP" ]]; then
|
||||
verify_app_name "$APP"
|
||||
nginx_vhosts_validate_single_func "$APP" "$FLAG"
|
||||
else
|
||||
for app in $(dokku_apps); do
|
||||
|
||||
Reference in New Issue
Block a user