summaryrefslogtreecommitdiff
path: root/tcwg-llvm-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tcwg-llvm-build.sh')
-rwxr-xr-xtcwg-llvm-build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcwg-llvm-build.sh b/tcwg-llvm-build.sh
index 11de84e6..bf89a18c 100755
--- a/tcwg-llvm-build.sh
+++ b/tcwg-llvm-build.sh
@@ -61,7 +61,7 @@ while [ "$#" -gt 0 ]; do
shift ;;
--revision)
if [ ! -z "$VAL" ]; then
- if echo "$VAL" | grep -q "r[0-9]\+"; then
+ if echo "$VAL" | grep "r[0-9]\+" >/dev/null; then
REVISION="$VAL"
else
echo "ERROR: $1"