Fix lexicographical compares of numeric values.
authorAditya Mandaleeka <adityam@microsoft.com>
Thu, 21 Jul 2016 20:55:29 +0000 (13:55 -0700)
committerAditya Mandaleeka <adityam@microsoft.com>
Thu, 21 Jul 2016 20:55:29 +0000 (13:55 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/63dd009d459054acd972acdc70c1e3bfbe5c9a0f

src/coreclr/clean.sh
src/coreclr/sync.sh

index 8d88bd2..dacb5e2 100755 (executable)
@@ -25,7 +25,7 @@ if [ $# == 0 ]; then
     clean_packages=true
 fi
 
-while [[ $# > 0 ]]
+while [[ $# -gt 0 ]]
 do
     opt="$1"
     case $opt in
index 275f17a..ab23561 100755 (executable)
@@ -26,7 +26,7 @@ if [ $# == 0 ]; then
     sync_src=true
 fi
 
-while [[ $# > 0 ]]
+while [[ $# -gt 0 ]]
 do
     opt="$1"
     case $opt in