[GRASS-SVN] r30119 - grass/trunk/scripts/d.out.gpsdrive

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 13 19:15:25 EST 2008


Author: hamish
Date: 2008-02-13 19:15:25 -0500 (Wed, 13 Feb 2008)
New Revision: 30119

Modified:
   grass/trunk/scripts/d.out.gpsdrive/d.out.gpsdrive
Log:
quoting

Modified: grass/trunk/scripts/d.out.gpsdrive/d.out.gpsdrive
===================================================================
--- grass/trunk/scripts/d.out.gpsdrive/d.out.gpsdrive	2008-02-14 00:06:42 UTC (rev 30118)
+++ grass/trunk/scripts/d.out.gpsdrive/d.out.gpsdrive	2008-02-14 00:15:25 UTC (rev 30119)
@@ -99,7 +99,7 @@
 
 
 if [ ! -d "$HOME/.gpsdrive" ] ; then
-    mkdir  $HOME/.gpsdrive
+    mkdir "$HOME/.gpsdrive"
 fi
 
 # GpsDrive scales maps named top_* as lat/lon (1:1) on-screen
@@ -168,10 +168,10 @@
 
 if [ "$GIS_FLAG_J" -eq 1 ] ; then
    out_jpeg="`basename $output .png`.jpg"
-   cd $HOME/.gpsdrive
+   cd "$HOME/.gpsdrive"
    sync  # sleep 1
-   pngtopnm $output | pnmtojpeg > $out_jpeg
-   rm -f $output
+   pngtopnm "$output" | pnmtojpeg > "$out_jpeg"
+   rm -f "$output"
    output="$out_jpeg"
 fi
 
@@ -199,7 +199,7 @@
    g.message -w "Projected input maps may be somewhat inaccurate at this scale."
 fi
 
-echo "$output $LAT $LON $SCALE" >> $HOME/.gpsdrive/map_koord.txt
+echo "$output $LAT $LON $SCALE" >> "$HOME/.gpsdrive/map_koord.txt"
 
 g.message "Center lat,lon is [$LAT,$LON]"
 g.message "Scale is [1:${SCALE}]"



More information about the grass-commit mailing list