Merge pull request #3395 from dokku/log-exit

Correct early exit 1 in apps:report
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2019-01-11 11:22:28 -05:00
commit e46e2f01f1
2 files changed
+17 -1

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ cmd-apps-report-single() {
if [[ "$use_echo" ]]; then if [[ "$use_echo" ]]; then
echo "not deployed" echo "not deployed"
else else
dokku_log_fail "not deployed" dokku_log_exit "not deployed"
fi fi
fi fi
else else
+16
View File
@@ -108,6 +108,22 @@ dokku_log_warn() {
echo " ! $*" 1>&2 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() { dokku_log_fail_quiet() {
declare desc="log fail formatter" declare desc="log fail formatter"
if [[ -z "$DOKKU_QUIET_OUTPUT" ]]; then if [[ -z "$DOKKU_QUIET_OUTPUT" ]]; then