mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-25 17:13:10 +02:00
modulecmd: bugfix in find_module()
The result of the find command was stored as string not as bash array.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user