[Lunar-commits] <moonbase-core> gcc: provide arg to [ if default compiler not set.

Peter de Ridder peter at lunar-linux.org
Sun Apr 21 14:37:49 CEST 2013


commit de64705056e8433f9bdf42e51362eaa05f660add
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Sun, 21 Apr 2013 04:26:39 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/de64705056e8433f9bdf42e51362eaa05f660add

gcc: provide arg to [ if default compiler not set.
---
  compilers/gcc/plugin.d/optimize-gcc_4_7.plugin | +1/-1     
  1 file changed, 1 insertion(+), 1 deletion(-)

--- a/compilers/gcc/plugin.d/optimize-gcc_4_7.plugin
+++ b/compilers/gcc/plugin.d/optimize-gcc_4_7.plugin
@@ -221,7 +221,7 @@ EOF
 
   while true; do
     unset OPTIONS
-    IS_DEFAULT=$([ `get_local_config LUNAR_COMPILER` == "GCC_4_7" ] && echo DEFAULT || get_local_config LUNAR_COMPILER)
+    IS_DEFAULT=$([ "$(get_local_config LUNAR_COMPILER)" == "GCC_4_7" ] && echo DEFAULT || get_local_config LUNAR_COMPILER)
     DEFAULT=${CHOICE:-safe}
     CHOICE=`$DIALOG --title "$TITLE" --ok-label "Select" --cancel-label "Close" --default-item "$DEFAULT" --item-help --menu "" 0 0 0 $(
       echo "default"




More information about the Lunar-commits mailing list