Ver Fonte

Fixed exiting when files not found.

cartershanklin há 12 anos atrás
pai
commit
79b70a9dfc
1 ficheiros alterados com 6 adições e 1 exclusões
  1. 6 1
      build.sh

+ 6 - 1
build.sh

@@ -2,7 +2,12 @@
 
 # Check for all the stuff I need to function.
 for f in gcc flex bison mvn; do
-	which $f > /dev/null 2>&1 || ( echo "Required program $f is missing. Please install it and try again." ; exit 1 )
+	which $f > /dev/null 2>&1
+	if [ $? -ne 0 ]; then
+		echo "Required program $f is missing. Please install it and try again."
+		exit 1
+	fi
 done
 
+echo "Building Data Generator"
 (cd tpcds-gen; make)