Sfoglia il codice sorgente

fix space-in-path problem

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40177 15284696-431f-4ddb-bdfa-cd5b030d7da7
William Kyngesburye 15 anni fa
parent
commit
0d62342cc3
1 ha cambiato i file con 4 aggiunte e 9 eliminazioni
  1. 4 9
      macosx/app/build_gui_user_menu.sh

+ 4 - 9
macosx/app/build_gui_user_menu.sh

@@ -18,11 +18,6 @@ MENUDIR="$GISBASE_USER/Modules/etc"
 
 echo "Rebuilding Addon menu..."
 
-# clean up old .menu files
-if [ -d "$MENUDIR/gm/addons" ] ; then
-  rm -f "$MENUDIR/gm/addons/"*".menu"
-fi
-
 # just to make sure (startup should have created it)
 mkdir -p "$MENUDIR"
 echo "# generated by grass startup" > "$MENUDIR/xtnmenu.dat"
@@ -39,8 +34,8 @@ CMDGFOUND=""
 if [ "$CMDLISTG" != "" ] ; then
   for i in $CMDLISTG
   do
-    ftype="`file $BINDIRG/$i`"
-    if [ "`echo $ftype | grep 'Mach-O'`" ] || [ "`grep '#% *Module' $BINDIRG/$i`" ] ; then
+    ftype="`file "$BINDIRG/$i"`"
+    if [ "`echo $ftype | grep 'Mach-O'`" ] || [ "`grep '#% *Module' "$BINDIRG/$i"`" ] ; then
       echo "main:$i:$i:$i" >> "$MENUDIR/xtnmenu.dat"
       CMDGFOUND="1"
     fi
@@ -55,8 +50,8 @@ CMDLIST=`ls -1 2> /dev/null | sort -u`
 if [ "$CMDLIST" != "" ] ; then
   for i in $CMDLIST
   do
-    ftype="`file $BINDIR/$i`"
-    if [ "`echo $ftype | grep 'Mach-O'`" ] || [ "`grep '#% *Module' $BINDIR/$i`" ] ; then
+    ftype="`file "$BINDIR/$i"`"
+    if [ "`echo $ftype | grep 'Mach-O'`" ] || [ "`grep '#% *Module' "$BINDIR/$i"`" ] ; then
       if [ "$CMDFIRST" ] && [ "$CMDGFOUND" ] ; then
         echo "separator" >> "$MENUDIR/xtnmenu.dat"
         CMDFIRST=""