fix: correct issue where we accidentally bailed when there was no error
This commit is contained in:
1 parent
0292c4ee3b
commit
95292bfcba
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user