modulecmd: bugfix in find_module()

The result of the find command was stored as string not as bash array.
This commit is contained in:
2022-01-18 17:51:33 +01:00
parent 7c12c6e77e
commit dfca6fc2c9
+2 -2
View File
@@ -981,9 +981,9 @@ find_module() {
# a version number has been specified. But we still might
# have the same module/version with different use flags.
# The different release stages we ignore in this case.
modules=$(${find} -L "${dir}" -type f -not -name ".*" \
modules=( $(${find} -L "${dir}" -type f -not -name ".*" \
-ipath "${dir}/${module}*" \
| cut -b${col}-)
| cut -b${col}-) )
for mod in "${modules[@]}"; do
#
# loop over all used flags. If a module with