summaryrefslogtreecommitdiff
path: root/tcwg-llvm-build.sh
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2017-05-15 16:42:35 +0100
committerRenato Golin <renato.golin@linaro.org>2017-05-15 16:42:35 +0100
commitf6b1fe500a07b570a8a52c2ccde85320623d35a2 (patch)
treed7e37a4d2578ce3da525d3c415fdb32805ff4ce1 /tcwg-llvm-build.sh
parentd9fe7fb99336426171f5717a51e8b63a26431cf0 (diff)
tcwg-llvm-build.sh: updated the wrong argument
Change-Id: Ie9cb93e213bdba75ab84d755852cfe220aa5ea7b
Diffstat (limited to 'tcwg-llvm-build.sh')
-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"