diff --git a/plugins/apps/internal-functions b/plugins/apps/internal-functions index a38e6fda0..36cb1a637 100755 --- a/plugins/apps/internal-functions +++ b/plugins/apps/internal-functions @@ -55,7 +55,7 @@ cmd-apps-report-single() { if [[ "$use_echo" ]]; then echo "not deployed" else - dokku_log_fail "not deployed" + dokku_log_exit "not deployed" fi fi else diff --git a/plugins/common/functions b/plugins/common/functions index 69938491c..9478c2d7d 100755 --- a/plugins/common/functions +++ b/plugins/common/functions @@ -108,6 +108,22 @@ dokku_log_warn() { echo " ! $*" 1>&2 } +dokku_log_exit_quiet() { + declare desc="log exit formatter" + if [[ -z "$DOKKU_QUIET_OUTPUT" ]]; then + echo "$@" 1>&2 + fi + exit 0 +} + +dokku_log_exit() { + declare desc="log exit formatter" + if [[ -z "$DOKKU_QUIET_OUTPUT" ]]; then + echo "$@" 1>&2 + fi + exit 0 +} + dokku_log_fail_quiet() { declare desc="log fail formatter" if [[ -z "$DOKKU_QUIET_OUTPUT" ]]; then