From 76f1f4538d72a881fa6cd103a73c32e67ff897c7 Mon Sep 17 00:00:00 2001
From: Christian Engwer <christi@dune-project.org>
Date: Fri, 10 Jun 2011 18:53:59 +0000
Subject: [PATCH] [dunecontrol] bug fix in dunecontrol export

[[Imported from SVN: r6459]]
---
 bin/dunecontrol | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/dunecontrol b/bin/dunecontrol
index 62869f91b..d3e4b50a7 100755
--- a/bin/dunecontrol
+++ b/bin/dunecontrol
@@ -664,8 +664,8 @@ case "$command" in
     for mod in $MODULES; do
       path=$(eval echo \$PATH_$mod)
       name=$(eval echo \$NAME_$mod)
-      if test -f $p/dune.module; then
-        export DUNE_CONTROL_PATH="$DUNE_CONTROL_PATH:$p/dune.module"
+      if test -f "$path/dune.module"; then
+        export DUNE_CONTROL_PATH="$DUNE_CONTROL_PATH:$path/dune.module"
       else
         if test -f "$path/lib/dunecontrol/$name/dune.module"; then
           export DUNE_CONTROL_PATH="$DUNE_CONTROL_PATH:$path/lib/dunecontrol/$name/dune.module"
-- 
GitLab