summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtcwg-llvm-build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcwg-llvm-build.sh b/tcwg-llvm-build.sh
index 5f3be0c7..66215dc3 100755
--- a/tcwg-llvm-build.sh
+++ b/tcwg-llvm-build.sh
@@ -102,7 +102,7 @@ while [ "$#" -gt 0 ]; do
fi
shift ;;
--linkjobs)
- if [ ! -z "$VAL" ]; then
+ if [ "$VAL" -gt 0 ]; then
LINKJOBS="$VAL"
else
echo "ERROR: Link jobs '$VAL' not valid"
@@ -120,7 +120,7 @@ while [ "$#" -gt 0 ]; do
fi
shift ;;
--branch)
- if [ "$VAL" -gt 0 ]; then
+ if [ ! -z "$VAL" ]; then
BRANCH="$VAL"
else
echo "ERROR: Git branch '$VAL' not valid"