Merge pull request #2042 from dokku/2037_mh-checks-newline

ensure CHECKS file has trailing newline
This commit is contained in:
Michael Hobbs
2016-03-29 15:56:07 -07:00
2 changed files with 6 additions and 1 deletions

View File

@@ -118,6 +118,11 @@ checks_check_deploy() {
dokku_log_info1 "Default container check successful!" && exit 0
fi
# ensure CHECKS file has trailing newline
if [[ "$(tail -c1 "$FILENAME")" != "" ]]; then
echo "" >> "$FILENAME"
fi
# Reads name/value pairs, sets the WAIT and TIMEOUT variables
exec < "$FILENAME"
local LINE

View File

@@ -1 +1 @@
/ nodejs/express
/ nodejs/express