]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
make.sh: Don't try to dump a non-existing logfile
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 23 Nov 2017 16:09:00 +0000 (16:09 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 23 Nov 2017 16:09:00 +0000 (16:09 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index de2d9aeadea1b07c1b646bb7baed5e1caa61e636..44516af73685f08d1c80b39c5510aa7449d11879 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -369,7 +369,7 @@ exiterror() {
        done
 
        # Dump logfile
-       if [ -n "${LOGFILE}" ]; then
+       if [ -n "${LOGFILE}" ] && [ -e "${LOGFILE}" ]; then
                echo # empty line
 
                local line