Skip to content
Snippets Groups Projects
Commit da68c23e authored by Lukáš Krupčík's avatar Lukáš Krupčík
Browse files

fix

parent c32e65c3
No related branches found
No related tags found
1 merge request!3Revert "fix"
Pipeline #5867 passed with warnings
...@@ -5,7 +5,7 @@ if [[ -z "$1" ]];then ...@@ -5,7 +5,7 @@ if [[ -z "$1" ]];then
echo "Usage: find_dependency module_name" echo "Usage: find_dependency module_name"
exit 1 exit 1
fi fi
for P in `$(echo "$MODULEPATH" | tr ":" " ")`; do for P in `echo "$MODULEPATH" | tr ":" " "`; do
L=$(grep -E "(load|add)[[:punct:] ]*$1[^-[:alnum:]]*$" -R "$P" | sort) L=$(grep -E "(load|add)[[:punct:] ]*$1[^-[:alnum:]]*$" -R "$P" | sort)
if [[ ! -z "$L" ]]; then if [[ ! -z "$L" ]]; then
LIST+=$L LIST+=$L
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment