[GRASS-SVN] r55279 - grass-promo/tutorials/batch_processing/earthquakes/NZ

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 3 14:27:18 PST 2013


Author: hamish
Date: 2013-03-03 14:27:18 -0800 (Sun, 03 Mar 2013)
New Revision: 55279

Modified:
   grass-promo/tutorials/batch_processing/earthquakes/NZ/do_quakes_NZTM_ChCh.sh
   grass-promo/tutorials/batch_processing/earthquakes/NZ/do_quakes_NZ_lcc.sh
Log:
add a check to quieten warning msg

Modified: grass-promo/tutorials/batch_processing/earthquakes/NZ/do_quakes_NZTM_ChCh.sh
===================================================================
--- grass-promo/tutorials/batch_processing/earthquakes/NZ/do_quakes_NZTM_ChCh.sh	2013-03-03 08:43:13 UTC (rev 55278)
+++ grass-promo/tutorials/batch_processing/earthquakes/NZ/do_quakes_NZTM_ChCh.sh	2013-03-03 22:27:18 UTC (rev 55279)
@@ -48,9 +48,11 @@
 cd "$TMPDIR"
 
 # remove old stuff
-g.remove vect=recent_earthquakes --quiet
+eval `g.findfile elem=vector file=recent_earthquakes`
+if [ -n "$file" ] ; then
+   g.remove vect=recent_earthquakes --quiet
+fi
 
-
 ### download and import
 DATAFILE="$TMPDIR/latest_gns_quakes.csv"
 

Modified: grass-promo/tutorials/batch_processing/earthquakes/NZ/do_quakes_NZ_lcc.sh
===================================================================
--- grass-promo/tutorials/batch_processing/earthquakes/NZ/do_quakes_NZ_lcc.sh	2013-03-03 08:43:13 UTC (rev 55278)
+++ grass-promo/tutorials/batch_processing/earthquakes/NZ/do_quakes_NZ_lcc.sh	2013-03-03 22:27:18 UTC (rev 55279)
@@ -45,7 +45,10 @@
 cd "$TMPDIR"
 
 # remove old stuff
-g.remove vect=recent_earthquakes --quiet
+eval `g.findfile elem=vector file=recent_earthquakes`
+if [ -n "$file" ] ; then
+   g.remove vect=recent_earthquakes --quiet
+fi
 
 
 ### download and import



More information about the grass-commit mailing list