prompt.sh 359 B

12345678910
  1. #!/bin/sh
  2. LOCATION="`g.gisenv GISDBASE`/`g.gisenv LOCATION_NAME`/`g.gisenv MAPSET`"
  3. if test -d "$LOCATION/grid3/G3D_MASK" && test -f "$LOCATION/cell/MASK" ; then
  4. echo [Raster and Volume MASKs present]
  5. elif test -f "$LOCATION/cell/MASK" ; then
  6. echo [Raster MASK present]
  7. elif test -d "$LOCATION/grid3/G3D_MASK" ; then
  8. echo [Volume MASK present]
  9. fi