Skip to content
Snippets Groups Projects
Commit 800842ae authored by Jorrit Fahlke's avatar Jorrit Fahlke
Browse files

Don't call find_modules with an empty or no argument. This should allow

directories in DUNE_CONTROL_PATH which don't actually contain any modules and
dunecontrol should now return a (more) sensible error message if it is called
from a wrong directory.

[[Imported from SVN: r5411]]
parent ce177ca1
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,7 @@ find_modules_in_path() {
while read dir; do
if test -d "$dir"; then
while read m; do
find_modules $m
test -n "$m" && find_modules "$m"
done <<EOFM
$(find "$dir" -name $CONTROL | $GREP -v 'dune-[-_a-zA-Z]/dune-[-a-zA-Z_]*-[0-9]\{1,\}.[0-9]\{1,\}/')
EOFM
......
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