summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Mandaleeka <adityam@microsoft.com>2016-07-21 13:55:29 -0700
committerAditya Mandaleeka <adityam@microsoft.com>2016-07-21 13:55:29 -0700
commit63dd009d459054acd972acdc70c1e3bfbe5c9a0f (patch)
treeefe4fa6d3ae6b26c9e14cc9946073da11ce12c99
parentece6cb3aba99ce30cbadb1fe4092959371401f29 (diff)
downloadcoreclr-63dd009d459054acd972acdc70c1e3bfbe5c9a0f.tar.gz
coreclr-63dd009d459054acd972acdc70c1e3bfbe5c9a0f.tar.bz2
coreclr-63dd009d459054acd972acdc70c1e3bfbe5c9a0f.zip
Fix lexicographical compares of numeric values.
-rwxr-xr-xclean.sh2
-rwxr-xr-xsync.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/clean.sh b/clean.sh
index 8d88bd27f2..dacb5e2986 100755
--- a/clean.sh
+++ b/clean.sh
@@ -25,7 +25,7 @@ if [ $# == 0 ]; then
clean_packages=true
fi
-while [[ $# > 0 ]]
+while [[ $# -gt 0 ]]
do
opt="$1"
case $opt in
diff --git a/sync.sh b/sync.sh
index 275f17ac0d..ab23561ac0 100755
--- a/sync.sh
+++ b/sync.sh
@@ -26,7 +26,7 @@ if [ $# == 0 ]; then
sync_src=true
fi
-while [[ $# > 0 ]]
+while [[ $# -gt 0 ]]
do
opt="$1"
case $opt in