diff flys-backend/contrib/import_river.sh @ 5212:14186e924534

Fix opt path if OPTIONAL_LIBS is not set
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 11 Mar 2013 10:12:55 +0100
parents 1b6d4edeeb4c
children 480d2f1f61cc
line wrap: on
line diff
--- a/flys-backend/contrib/import_river.sh	Mon Mar 11 09:53:16 2013 +0100
+++ b/flys-backend/contrib/import_river.sh	Mon Mar 11 10:12:55 2013 +0100
@@ -39,7 +39,7 @@
 MIN_MEMORY="8024m"
 
 if [ -z "$OPTIONAL_LIBS" ]; then
-    OPTIONAL_LIBS="${DIR}"/../opt
+    OPTIONAL_LIBS="$(dirname $0)/opt"
 fi
 
 if [ -d "$OPTIONAL_LIBS" ]; then

http://dive4elements.wald.intevation.org