Fix build script
[libcds.git] / build / build.sh
index 621ffd5e1a22211951d03f26b1147458dab8aec5..95ef503e5b8f28ddd48605b0bcc285c4db9918b3 100755 (executable)
@@ -536,7 +536,7 @@ $MAKE -f Makefile \
      OBJ_PATH=$OBJ_PATH/debug \
      debug
 
-if test $? -gt 0; then
+if [ $? -ne 0 ]; then
    exit $?
 fi
 
@@ -562,7 +562,7 @@ $MAKE -f Makefile \
      OBJ_PATH=$OBJ_PATH/release \
      release
      
-if test $? -gt 0; then
+if [ $? -ne 0 ]; then
    exit $?
 fi
 
@@ -584,7 +584,7 @@ if test $MAKE_DEBUG_TEST = '0'; then
         OBJ_PATH=$OBJ_PATH/test \
         $target
         
-    if test $? -gt 0; then
+    if [ $? -ne 0 ]; then
         exit $?
     fi
 fi    
@@ -606,7 +606,7 @@ if test $MAKE_DEBUG_TEST = '1'; then
         OBJ_PATH=$OBJ_PATH/test-debug \
         $target
         
-    if test $? -gt 0; then
+    if [ $? -ne 0 ]; then
         exit $?
     fi
 fi