Skip to content
Snippets Groups Projects
Commit c89be22c authored by Christian Engwer's avatar Christian Engwer
Browse files

[dunecontrol]

cleanup fix of fs#1114

[[Imported from SVN: r6752]]
parent f6732962
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,7 @@ setup_control_path() {
DUNE_CONTROL_PATH="$(. $DUNE_OPTS_FILE; eval echo $DUNE_CONTROL_PATH)"
fi
# canonicalize path
local TMP="$(canonicalname .)"
local TMP=""
# foreach dir in $@
while read dir; do
TMP=$TMP:"$(canonicalname $dir)"
......@@ -179,7 +179,7 @@ setup_control_path() {
$(echo $DUNE_CONTROL_PATH | sed -e 's/:\+/:/g' | tr ':' '\n')
EOF
# sort+uniq path
DUNE_CONTROL_PATH="$(echo $TMP | tr ':' '\n' | sort -u | tr '\n' ':')"
DUNE_CONTROL_PATH="$(echo $TMP | tr ':' '\n' | sort -u | tr '\n' ':' | sed -e 's/^://' -e 's/:$//')"
# safe result
export DUNE_CONTROL_PATH
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment