Use -n "$()" instead of "$()" != ""

This commit is contained in:
Martin Storsjö committed 2020-11-03 14:00:45 +02:00
1 parent fcafcacc58
commit 2af44c5a56
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ if [ $# -lt 1 ]; then
fi fi
MAKE=make MAKE=make
if [ "$(which gmake)" != "" ]; then if [ -n "$(which gmake)" ]; then
MAKE=gmake MAKE=gmake
fi fi
+1 -1
View File
@@ -49,7 +49,7 @@ fi
cd mingw-w64 cd mingw-w64
MAKE=make MAKE=make
if [ "$(which gmake)" != "" ]; then if [ -n "$(which gmake)" ]; then
MAKE=gmake MAKE=gmake
fi fi
+1 -1
View File
@@ -62,7 +62,7 @@ fi
[ -z "$CHECKOUT_ONLY" ] || exit 0 [ -z "$CHECKOUT_ONLY" ] || exit 0
MAKE=make MAKE=make
if [ "$(which gmake)" != "" ]; then if [ -n "$(which gmake)" ]; then
MAKE=gmake MAKE=gmake
fi fi