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