fixed the MacPorts check
[summon-arm-toolchain.git] / summon-arm-toolchain
index c09c7039a30d58d7a08b4f50e0e7220b945c9b2b..a5051ff6c7404a6e2cc1a8f13cf1c858ae81eaa8 100755 (executable)
@@ -27,7 +27,7 @@ SUDO='sudo'
 # Set to 1 to be quieter while running
 QUIET=0
 # Set to 1 to use linaro gcc instead of the FSF gcc
 # Set to 1 to be quieter while running
 QUIET=0
 # Set to 1 to use linaro gcc instead of the FSF gcc
-USE_LINARO=0
+USE_LINARO=1
 # Set to 1 to build libstm32 provided by ST
 LIBSTM32_EN=0
 # Set to 1 to build libopenstm32 an open source library for stm32
 # Set to 1 to build libstm32 provided by ST
 LIBSTM32_EN=0
 # Set to 1 to build libopenstm32 an open source library for stm32
@@ -119,7 +119,7 @@ case "$(uname)" in
     echo "MacPorts not installed."
   else
     pc=`port installed ${DARWINDEPS} | wc -l | tr -d " "`
     echo "MacPorts not installed."
   else
     pc=`port installed ${DARWINDEPS} | wc -l | tr -d " "`
-    if [ ${pc} -lt ${DARWINDEPSCOUNT} ];
+    if [ ${pc} -lt $[{DARWINDEPSCOUNT}+1] ];
     then
       echo "Something is missing, do you want to install everything needed?"
       echo "(You need super user rights to do this.)"
     then
       echo "Something is missing, do you want to install everything needed?"
       echo "(You need super user rights to do this.)"