From 95292bfcbac2e1c7b160612d9ffd971367135c2a Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 29 Jul 2018 17:55:46 -0400 Subject: [PATCH] fix: correct issue where we accidentally bailed when there was no error --- plugins/ps/functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/ps/functions b/plugins/ps/functions index c1757f18c..44b7648d9 100755 --- a/plugins/ps/functions +++ b/plugins/ps/functions @@ -36,7 +36,9 @@ extract_procfile() { dokku_log_info1_quiet "App Procfile file found ($DOKKU_PROCFILE)" # shellcheck disable=SC2069 PROCFILE_ERRORS="$(procfile-util check --procfile "$DOKKU_PROCFILE" 2>&1 >/dev/null || true)" - [[ -n "$PROCFILE_ERRORS" ]] && dokku_log_fail "${PROCFILE_ERRORS}" + if [[ -n "$PROCFILE_ERRORS" ]]; then + dokku_log_fail "${PROCFILE_ERRORS}" + fi else dokku_log_info1_quiet "No Procfile found in app image" fi