bugfixes in sub-command 'avail'

This commit is contained in:
2019-05-14 14:52:52 +02:00
parent 2aa283b210
commit 9f155dbf9c
+1 -2
View File
@@ -1139,7 +1139,6 @@ subcommand_avail() {
groups+=( "${group}" )
fi
done
groups+=( 'other' )
for string in "${pattern[@]}"; do
for group in "${groups[@]}"; do
mods=( $( get_available_modules \
@@ -1311,7 +1310,7 @@ subcommand_use() {
"${CMD}" "${FUNCNAME[0]##*_}" "${overlay}"
if [[ ! ${Overlays[${overlay}]} ]]; then
Overlays[${overlay}]=1
PMODULES_OVERLAYS="${PMODULES_OVERLAYS}:${overlay}"
PMODULES_OVERLAYS+=:${overlay}
get_group_depths "${!Overlays[@]}"
for group in ${UsedGroups//:/ }; do
local dir="${overlay}/${group}/${PMODULES_MODULEFILES_DIR}"