Fix iteration on all apps for dokku proxy command

Closes #2481
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2016-11-20 15:15:40 -07:00
1 parent c98ab6684f
commit 7ac47d2e61
1 file changed
+5 -4
+5 -4
View File
@@ -6,13 +6,14 @@ source "$PLUGIN_AVAILABLE_PATH/proxy/functions"
proxy_main_cmd() { proxy_main_cmd() {
declare desc="displays app proxy implementation via command line" declare desc="displays app proxy implementation via command line"
local cmd="proxy" local cmd="proxy"
local ALL_APPS=$(dokku_apps) [[ "$1" == "$cmd" ]] && shift 1
if [[ -n "$2" ]]; then local APPS=$(dokku_apps)
local APP="$2" if [[ -n "$1" ]]; then
local APPS="$1"
fi fi
local APPS=${APP:="$ALL_APPS"}
dokku_col_log_info1_quiet "App Name" "Proxy Type" dokku_col_log_info1_quiet "App Name" "Proxy Type"
local app
for app in $APPS; do for app in $APPS; do
verify_app_name "$app" verify_app_name "$app"
dokku_col_log_msg "$app" "$(get_app_proxy_type "$app")" dokku_col_log_msg "$app" "$(get_app_proxy_type "$app")"