[GRASS-SVN] r38787 - grass/branches/develbranch_6/scripts/db.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 19 03:42:33 EDT 2009


Author: neteler
Date: 2009-08-19 03:42:33 -0400 (Wed, 19 Aug 2009)
New Revision: 38787

Modified:
   grass/branches/develbranch_6/scripts/db.in.ogr/db.in.ogr
Log:
revert since grep is tested not v.in.ogr

Modified: grass/branches/develbranch_6/scripts/db.in.ogr/db.in.ogr
===================================================================
--- grass/branches/develbranch_6/scripts/db.in.ogr/db.in.ogr	2009-08-19 07:41:02 UTC (rev 38786)
+++ grass/branches/develbranch_6/scripts/db.in.ogr/db.in.ogr	2009-08-19 07:42:33 UTC (rev 38787)
@@ -111,10 +111,9 @@
 # check ERRORs and cat and cat_ issues (maybe problem with translated messages)
 # we import faking a map which generates only the attribute table:
 WARNING="`v.in.ogr --q dsn=\"$GIS_OPT_DSN\" $LAYER out=$GIS_OPT_OUTPUT -o --o 2>&1 | grep -i 'ERROR\|cat' | grep -v 'truncated'`"
-STATUSOGR=$?
 if [ ! -z "$WARNING" ] ; then
    echo "$WARNING"
-   if [ ! -z "$GIS_OPT_DB_TABLE" -a $STATUSOGR -ne 0 ] ; then
+   if [ ! -z "$GIS_OPT_DB_TABLE" ] ; then
       g.message -e "Input DSN <$INPUT> not found or not readable"
    else
       g.message -e "Input table <$INPUT> not found or not readable"



More information about the grass-commit mailing list