From 8be5c874ec5eace43333f4e36fa475db2fc01016 Mon Sep 17 00:00:00 2001 From: Michael Hobbs Date: Wed, 2 Sep 2015 11:59:50 -0700 Subject: [PATCH] errant use of local. derp --- plugins/ps/commands | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ps/commands b/plugins/ps/commands index 0cc80d937..6f6210dd3 100755 --- a/plugins/ps/commands +++ b/plugins/ps/commands @@ -6,7 +6,7 @@ source "$(dirname $0)/functions" case "$1" in ps) [[ -z $2 ]] && echo "Please specify an app to run the command on" && exit 1 - APP="$2"; verify_app_name "$APP"; local DOKKU_APP_RUNNING_CONTAINER_IDS=$(get_app_running_container_ids $APP) + APP="$2"; verify_app_name "$APP"; DOKKU_APP_RUNNING_CONTAINER_IDS=$(get_app_running_container_ids $APP) ! (is_deployed $APP) && echo "App $APP has not been deployed" && exit 0 for CID in $DOKKU_APP_RUNNING_CONTAINER_IDS; do @@ -30,7 +30,7 @@ case "$1" in ps:stop) [[ -z $2 ]] && echo "Please specify an app to run the command on" && exit 1 - APP="$2"; verify_app_name "$APP"; local DOKKU_APP_RUNNING_CONTAINER_IDS=$(get_app_running_container_ids $APP) + APP="$2"; verify_app_name "$APP"; DOKKU_APP_RUNNING_CONTAINER_IDS=$(get_app_running_container_ids $APP) ! (is_deployed $APP) && echo "App $APP has not been deployed" && exit 0 if [[ -n "$DOKKU_APP_RUNNING_CONTAINER_IDS" ]]; then