feat: respect DOKKU_FAIL_EXIT_CODE value in dokku_log_fail functions

This commit is contained in:
Jose Diaz-Gonzalez committed 2021-02-28 15:18:04 -05:00
1 parent 66e66c9d18
commit 7aa1334af9
1 file changed
+2 -2
+2 -2
View File
@@ -150,13 +150,13 @@ dokku_log_fail_quiet() {
if [[ -z "$DOKKU_QUIET_OUTPUT" ]]; then if [[ -z "$DOKKU_QUIET_OUTPUT" ]]; then
echo " ! $*" 1>&2 echo " ! $*" 1>&2
fi fi
exit 1 exit ${DOKKU_FAIL_EXIT_CODE:=1}
} }
dokku_log_fail() { dokku_log_fail() {
declare desc="log fail formatter" declare desc="log fail formatter"
echo " ! $*" 1>&2 echo " ! $*" 1>&2
exit 1 exit ${DOKKU_FAIL_EXIT_CODE:=1}
} }
dokku_log_stderr() { dokku_log_stderr() {