[GRASS-SVN] r30121 - grass/trunk/scripts/db.out.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 13 19:21:19 EST 2008
Author: hamish
Date: 2008-02-13 19:21:19 -0500 (Wed, 13 Feb 2008)
New Revision: 30121
Modified:
grass/trunk/scripts/db.out.ogr/db.out.ogr
Log:
quote variables
Modified: grass/trunk/scripts/db.out.ogr/db.out.ogr
===================================================================
--- grass/trunk/scripts/db.out.ogr/db.out.ogr 2008-02-14 00:17:13 UTC (rev 30120)
+++ grass/trunk/scripts/db.out.ogr/db.out.ogr 2008-02-14 00:21:19 UTC (rev 30121)
@@ -108,14 +108,12 @@
echo "$GIS_OPT_DSN" | grep '\.dbf$' > /dev/null
if [ $? -eq 0 ] ; then
OUTNAME="`basename $GIS_OPT_DSN .dbf`"
- rm -f $OUTNAME.shp
- rm -f $OUTNAME.shx
- rm -f $OUTNAME.prj
+ rm -f "$OUTNAME.shp" "$OUTNAME.shx" "$OUTNAME.prj"
OUTNAME="$OUTNAME.dbf"
else
- rm -f $GIS_OPT_DSN/$GIS_OPT_INPUT.shp
- rm -f $GIS_OPT_DSN/$GIS_OPT_INPUT.shx
- rm -f $GIS_OPT_DSN/$GIS_OPT_INPUT.prj
+ rm -f "$GIS_OPT_DSN/$GIS_OPT_INPUT.shp" \
+ "$GIS_OPT_DSN/$GIS_OPT_INPUT.shx" \
+ "$GIS_OPT_DSN/$GIS_OPT_INPUT.prj"
OUTNAME="$GIS_OPT_DSN/$GIS_OPT_INPUT.dbf"
fi
else
More information about the grass-commit
mailing list