Merge pull request #437 from spartacus06/cleanup

check that logfile exists before printing message
This commit is contained in:
Josh Poimboeuf 2014-10-01 14:05:28 -05:00
commit ab1b487d90
1 changed files with 5 additions and 1 deletions

View File

@ -60,7 +60,11 @@ die() {
msg="$1"
fi
warn "$msg. Check $LOGFILE for more details."
if [[ -e $LOGFILE ]]; then
warn "$msg. Check $LOGFILE for more details."
else
warn "$msg."
fi
exit 1
}