From 6ba7525373c85afc634401743d076df52d949855 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 22 Mar 2021 11:50:24 +0100 Subject: [PATCH] follow symbolic link while searching for available modules --- Pmodules/modulecmd.bash.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 8a70d54..563a587 100755 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -747,7 +747,7 @@ get_available_modules() { if [[ :${use_releases}: =~ :${release}: ]]; then mods+=( "${mod}" ${release} "${dir}/${mod}") fi - done < <(${find} * \( -type f -o -type l \) -not -name ".*" -ipath "${module}*") + done < <(${find} -L * \( -type f -o -type l \) -not -name ".*" -ipath "${module}*") } done echo "${mods[@]}"