* newinstall.sh: fix detection of gmake/make
[citadel.git] / citadel / newinstall.sh
index d21b5607860417dc24aeaa5e06eec575d0674972..fecac1d726d9aed51623de1c16a1b1696d3b91f9 100644 (file)
@@ -300,8 +300,8 @@ do_config () {
 
 # 1. Gather information about the target system
 
-[ x$MAKE == x ] && MAKE=`which gmake`
-[ x$MAKE == x ] && MAKE=`which make`
+[ -n $MAKE ] && MAKE=`which gmake 2>/dev/null`
+[ -n $MAKE ] && MAKE=`which make 2>/dev/null`
 clear
 
 os=`uname`