[Dive4elements-commits] [PATCH] Fix opt path if OPTIONAL_LIBS is not set

Wald Commits scm-commit at wald.intevation.org
Mon Mar 11 10:13:00 CET 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1362993175 -3600
# Node ID 14186e9245346411c809c5e4084aad0a71618cf2
# Parent  9e11599266c84650d3dfa6debbf1f2f8244dbd0f
Fix opt path if OPTIONAL_LIBS is not set

diff -r 9e11599266c8 -r 14186e924534 flys-backend/contrib/import_river.sh
--- 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


More information about the Dive4elements-commits mailing list