[GRASS-SVN] r47390 - grass/branches/develbranch_6/scripts/db.out.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 3 13:11:44 EDT 2011


Author: marisn
Date: 2011-08-03 10:11:44 -0700 (Wed, 03 Aug 2011)
New Revision: 47390

Modified:
   grass/branches/develbranch_6/scripts/db.out.ogr/db.out.ogr
Log:
Hack around passing empty parameter to parser introduced by r45611 quotes fix

Modified: grass/branches/develbranch_6/scripts/db.out.ogr/db.out.ogr
===================================================================
--- grass/branches/develbranch_6/scripts/db.out.ogr/db.out.ogr	2011-08-03 17:04:45 UTC (rev 47389)
+++ grass/branches/develbranch_6/scripts/db.out.ogr/db.out.ogr	2011-08-03 17:11:44 UTC (rev 47390)
@@ -98,8 +98,14 @@
       exit 1
    fi
 fi
-  
-v.out.ogr --q "$GIS_OPT_INPUT" dsn="$GIS_OPT_DSN" "$OLAYER" format="$GIS_OPT_FORMAT" type=point
+
+# Hack around empty parameter not supported by g.parser
+if [ ! -z "$OLAYER" ] ; then
+    v.out.ogr --q "$GIS_OPT_INPUT" dsn="$GIS_OPT_DSN" "$OLAYER" format="$GIS_OPT_FORMAT" type=point
+else
+    v.out.ogr --q "$GIS_OPT_INPUT" dsn="$GIS_OPT_DSN" format="$GIS_OPT_FORMAT" type=point
+fi
+
 if [ $? -ne 0 ] ;  then
    exit 1
 fi



More information about the grass-commit mailing list