changeset 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 9e11599266c8
children 76818dc2c937
files flys-backend/contrib/import_river.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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