ソースを参照

bugfix: gps device can be filename with spaces so needs to be quoted (merge from devbr6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@36742 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 16 年 前
コミット
50cd94028a
1 ファイル変更3 行追加3 行削除
  1. 3 3
      scripts/v.in.gpsbabel/v.in.gpsbabel

+ 3 - 3
scripts/v.in.gpsbabel/v.in.gpsbabel

@@ -161,7 +161,7 @@ if [ -n "$GIS_OPT_OUTPUT" ] ; then
     fi
 fi
 if [ -n "$GIS_OPT_INPUT" ] ; then
-    GPSdevice="-f $GIS_OPT_INPUT"
+    GPSdevice="$GIS_OPT_INPUT"
     if [ $VERBOSE -eq 1 ] ; then
 	g.message message="file=$GIS_OPT_INPUT"
     fi
@@ -249,7 +249,7 @@ if [ $CREATE_POINTS -eq 1 ] ; then
 	TYPE="-t"
     fi
 
-    gpsbabel $TYPE -i $GIS_OPT_FORMAT $GPSdevice $PROGVERBOSE \
+    gpsbabel $TYPE -i $GIS_OPT_FORMAT -f "$GPSdevice" $PROGVERBOSE \
 	-o xcsv,style="$STYLE" -F "$TMP".xcsv
     EXITCODE=$?
 
@@ -269,7 +269,7 @@ else
 	TYPE="-t"
 	EXITCODE=$?
     fi
-    gpsbabel $TYPE -i $GIS_OPT_FORMAT $GPSdevice $PROGVERBOSE \
+    gpsbabel $TYPE -i $GIS_OPT_FORMAT -f "$GPSdevice" $PROGVERBOSE \
 	-o gpx -F "$TMP".gpx
     EXITCODE=$?