]> wimlib.net Git - wimlib/commitdiff
tools/make-windows-release: check existence of config.log before grepping it
authorEric Biggers <ebiggers3@gmail.com>
Tue, 29 Jun 2021 07:42:11 +0000 (00:42 -0700)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 29 Jun 2021 07:42:11 +0000 (00:42 -0700)
Avoid a misleading log message.

tools/make-windows-release

index b21551192a16778ec4f44a8c85ad745d00b89510..5c652cee87e3cde424d5e534fc5bb70ed1b0c85f 100755 (executable)
@@ -43,7 +43,8 @@ fi
 
 # Compile wimlib
 
-if ! grep -q "./configure --host=${ARCH}-w64-mingw32" config.log || \
+if ! [ -e config.log ] ||
+       ! grep -q "./configure --host=${ARCH}-w64-mingw32" config.log || \
        ! grep -q "configure: exit 0" config.log || \
        [ $# -gt 0 ]
 then