Skip to content
Snippets Groups Projects

[dunecontrol] Error message for invalid path in DUNE_CONTROL_PATH

Merged Christoph Grüninger requested to merge feature/error-when-DUNE_CONTROL_PATH-invalid into master
1 unresolved thread
+ 4
0
@@ -232,6 +232,10 @@ setup_control_path() {
local TMP=""
# foreach dir in $@
while read dir; do
if ! test -e "$dir"; then
echo "ERROR: The path \"$dir\" given in DUNE_CONTROL_PATH does not exist."
exit 1
fi
TMP=$TMP:"$(canonicalname "$dir")"
done <<EOF
$(echo $DUNE_CONTROL_PATH | sed -e 's/:\+/:/g' | tr ':' '\n')
Loading