Mercurial > dive4elements > river
changeset 5459:7c646d4d5103
be more flexible with river names (e.g. containing white space) in import script
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 27 Mar 2013 15:26:51 +0100 |
parents | e667c127b600 |
children | 16c14e5ab00f |
files | flys-backend/contrib/import_river.sh |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-backend/contrib/import_river.sh Wed Mar 27 13:02:53 2013 +0100 +++ b/flys-backend/contrib/import_river.sh Wed Mar 27 15:26:51 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