This repository has been archived on 2022-02-20. You can view files and clone it, but cannot push or open issues/pull-requests.
bash-shell-base/modules/modules.sh

12 lines
231 B
Bash
Raw Normal View History

#!/bin/bash
# must have fuser and bindfs installed
module-load () {
BASH_MODULES="${BASH_MODULES:-/opt/bash/modules}"
MODULES=$1
echo $MODULES
for i in ${MODULES[@]}; do
echo $BASH_MODULES ${i}
. "$BASH_MODULES"/"$i".sh
done
}