changeset 5461:16c14e5ab00f

merge
author Tom Gottfried <tom.gottfried@intevation.de>
date Wed, 27 Mar 2013 15:38:07 +0100
parents c2bd97cd127f (current diff) 7c646d4d5103 (diff)
children f2371f3aaf03
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/contrib/import_river.sh	Wed Mar 27 15:37:25 2013 +0100
+++ b/flys-backend/contrib/import_river.sh	Wed Mar 27 15:38:07 2013 +0100
@@ -156,9 +156,9 @@
 fi
 
 GEW_FILE="$1"
-RIVER_NAME=$(grep "Gew.sser" "$1" | awk '{print $2}')
+RIVER_NAME=$(grep "Gew.sser" "$1" | sed 's/Gew.sser: //')
 DATE=$(date +%Y.%m.%d_%H%M)
-LOG_DIR=${LOG}/${RIVER_NAME}-$DATE
+LOG_DIR=${LOG}/`basename $GEW_FILE .gew`-$DATE
 mkdir -p ${LOG_DIR}
 
 if [ "$POSTGRES" = "TRUE" ]; then

http://dive4elements.wald.intevation.org