Fix setting of APPS when $1 is left unspecified

Closes #2029
This commit is contained in:
Jose Diaz-Gonzalez committed 2016-03-28 01:50:58 -04:00
1 parent 12ca7adcd1
commit 8c39685ef6
1 file changed
+2 -3
+2 -3
View File
@@ -6,11 +6,10 @@ source "$PLUGIN_AVAILABLE_PATH/checks/functions"
checks_main_cmd() { checks_main_cmd() {
declare desc="displays app zero-downtime status" declare desc="displays app zero-downtime status"
local cmd="checks" local cmd="checks"
local ALL_APPS=$(dokku_apps) local APPS=$(dokku_apps)
if [[ -n "$1" ]]; then if [[ -n "$1" ]]; then
local APP="$1" local APPS="$1"
fi fi
local APPS=${APP:="$ALL_APPS"}
dokku_col_log_info1_quiet "App Name" "Zero-Downtime Status" dokku_col_log_info1_quiet "App Name" "Zero-Downtime Status"
local app local app