12 lines
231 B
Bash
12 lines
231 B
Bash
|
#!/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
|
||
|
}
|