diff --git a/plugins/proxy/subcommands/default b/plugins/proxy/subcommands/default index cd913904c..4e867c850 100755 --- a/plugins/proxy/subcommands/default +++ b/plugins/proxy/subcommands/default @@ -6,13 +6,14 @@ source "$PLUGIN_AVAILABLE_PATH/proxy/functions" proxy_main_cmd() { declare desc="displays app proxy implementation via command line" local cmd="proxy" - local ALL_APPS=$(dokku_apps) - if [[ -n "$2" ]]; then - local APP="$2" + [[ "$1" == "$cmd" ]] && shift 1 + local APPS=$(dokku_apps) + if [[ -n "$1" ]]; then + local APPS="$1" fi - local APPS=${APP:="$ALL_APPS"} dokku_col_log_info1_quiet "App Name" "Proxy Type" + local app for app in $APPS; do verify_app_name "$app" dokku_col_log_msg "$app" "$(get_app_proxy_type "$app")"