瀏覽代碼

No standard option to suppress output, use redirects.

cartershanklin 12 年之前
父節點
當前提交
3334d4cb47
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      build.sh

+ 1 - 1
build.sh

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