From 09f2595715115f01ddf92671b04d6c5a5e34bc1c Mon Sep 17 00:00:00 2001 From: Ash Caire Date: Thu, 13 Mar 2014 22:14:06 +1100 Subject: [PATCH] Fix syntax error Fix issue where using double quotes instead of round brackets would cause the following error: ./scripts/devcompile.sh: line 30: 10#1.2 > 10#1.2.1: syntax error: invalid arithmetic operator (error token is ".2 > 10#1.2.1") --- scripts/devcompile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/devcompile.sh b/scripts/devcompile.sh index 4a4274c5b..c38339eb1 100755 --- a/scripts/devcompile.sh +++ b/scripts/devcompile.sh @@ -15,7 +15,7 @@ verify_go () { return 0 fi local IFS=. - local i ver1="$1" ver2="$2" + local i ver1=($1) ver2=($2) for ((i=${#ver1[@]}; i<${#ver2[@]}; i++)) do