make.sh: Don't try to dump a non-existing logfile

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2017-11-23 16:09:00 +00:00
parent f3b7cf47ca
commit 66028310ce

View File

@@ -369,7 +369,7 @@ exiterror() {
done
# Dump logfile
if [ -n "${LOGFILE}" ]; then
if [ -n "${LOGFILE}" ] && [ -e "${LOGFILE}" ]; then
echo # empty line
local line