From bc0af99b4c66a30edd6be173d81b440909422b58 Mon Sep 17 00:00:00 2001
From: Christian Engwer <christi@dune-project.org>
Date: Wed, 10 Jun 2009 06:05:45 +0000
Subject: [PATCH] fix last patch

[[Imported from SVN: r5541]]
---
 bin/dunemodules.inc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/bin/dunemodules.inc b/bin/dunemodules.inc
index 6d8212fd3..868e01779 100644
--- a/bin/dunemodules.inc
+++ b/bin/dunemodules.inc
@@ -14,7 +14,12 @@ CONTROL="dune.module"
 ###
 
 if test -z $DUNE_CONTROL_PATH; then
-  DUNE_CONTROL_PATH=.:/usr/local/lib/dunecontrol/:/usr/lib/dunecontrol/
+  DUNE_CONTROL_PATH=.
+  for i in /usr/local/lib/dunecontrol/ /usr/lib/dunecontrol/; do
+    if test -d $i; then 
+      DUNE_CONTROL_PATH=$DUNE_CONTROL_PATH:$i
+    fi
+  done
 fi
 if test -z $GREP; then
   GREP=grep
-- 
GitLab