feat: add verify_app_name calls to all shell subcommands
Without this, folks could potentially run commands against invalid applications.
This commit is contained in:
1 parent
03e80a76b6
commit
fd162f8895
28 files changed
+17
-32
No files matched your search
@@ -6,9 +6,9 @@ source "$PLUGIN_AVAILABLE_PATH/nginx-vhosts/functions"
|
||||
|
||||
cmd-nginx-logs() {
|
||||
declare desc="display app nginx logs from command line"
|
||||
declare cmd="$1"
|
||||
declare cmd="$1" APP="$2"
|
||||
|
||||
[[ -z $2 ]] && dokku_log_fail "Please specify an app to run the command on"
|
||||
verify_app_name "$APP"
|
||||
nginx_logs "$@"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user