From dea1c86a9b34cbcb73df6ca21ba9b189078cc274 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 21 Apr 2017 00:57:40 -0600 Subject: [PATCH 1/2] fix: Ensure we can call ps:report without specifying an application Closes #2721 --- plugins/ps/subcommands/report | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/ps/subcommands/report b/plugins/ps/subcommands/report index 77f952e6e..4036ac879 100755 --- a/plugins/ps/subcommands/report +++ b/plugins/ps/subcommands/report @@ -7,6 +7,11 @@ source "$PLUGIN_AVAILABLE_PATH/ps/functions" report_single_app() { declare APP="$1" INFO_FLAG="$2" local APP_DIR="$DOKKU_ROOT/$APP" + local use_echo + if [[ "$INFO_FLAG" == "true" ]]; then + INFO_FLAG="" + fi + local passed_phases="deploy" local APP_CIDS=$(get_app_container_ids "$APP"); local PROCS=0; local RUNNING="" From 6d21ab20bdabdd91c5401d7dbcea580f062ed3f3 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 21 Apr 2017 10:22:20 -0600 Subject: [PATCH 2/2] fix: minor stylistic change --- plugins/ps/subcommands/report | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/ps/subcommands/report b/plugins/ps/subcommands/report index 4036ac879..3854801cf 100755 --- a/plugins/ps/subcommands/report +++ b/plugins/ps/subcommands/report @@ -7,10 +7,7 @@ source "$PLUGIN_AVAILABLE_PATH/ps/functions" report_single_app() { declare APP="$1" INFO_FLAG="$2" local APP_DIR="$DOKKU_ROOT/$APP" - local use_echo - if [[ "$INFO_FLAG" == "true" ]]; then - INFO_FLAG="" - fi + [[ "$INFO_FLAG" == "true" ]] && INFO_FLAG="" local passed_phases="deploy" local APP_CIDS=$(get_app_container_ids "$APP"); local PROCS=0; local RUNNING=""