From d79a79084eaceeff12e0137e413ef54deab03ccc Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 27 Feb 2017 07:30:21 -0700 Subject: [PATCH] fix: bail early when checking ps output for an undeployed app Closes #2630 --- plugins/ps/subcommands/default | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ps/subcommands/default b/plugins/ps/subcommands/default index 46dec800a..bcb52434d 100755 --- a/plugins/ps/subcommands/default +++ b/plugins/ps/subcommands/default @@ -8,10 +8,10 @@ ps_main_cmd() { [[ -z $2 ]] && dokku_log_fail "Please specify an app to run the command on" local APP="$2"; verify_app_name "$APP" - local DOKKU_APP_RUNNING_CONTAINER_IDS=$(get_app_running_container_ids "$APP") - ! (is_deployed "$APP") && echo "App $APP has not been deployed" && exit 0 + local DOKKU_APP_RUNNING_CONTAINER_IDS=$(get_app_running_container_ids "$APP") + local CID for CID in $DOKKU_APP_RUNNING_CONTAINER_IDS; do has_tty && local DOKKU_RUN_OPTS="-i -t"