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

Merge branch 'feature/error-when-DUNE_CONTROL_PATH-invalid' into 'master'

[dunecontrol] Error message for invalid path in DUNE_CONTROL_PATH

Closes #242

See merge request !926
parents 9a4f79ad 45cde702
No related branches found
No related tags found
1 merge request!926[dunecontrol] Error message for invalid path in DUNE_CONTROL_PATH
Pipeline #33353 passed
......@@ -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')
......
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