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:
@@ -612,6 +612,7 @@ cmd-deploy() {
|
||||
declare APP="$1" IMAGE_TAG="$2"
|
||||
source "$PLUGIN_AVAILABLE_PATH/config/functions"
|
||||
|
||||
verify_app_name "$APP"
|
||||
local DOKKU_SCHEDULER=$(get_app_scheduler "$APP")
|
||||
plugn trigger scheduler-deploy "$DOKKU_SCHEDULER" "$APP" "$IMAGE_TAG"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user