2023-03-08 00:19:29 -06:00
|
|
|
#!/bin/bash -l
|
2022-04-04 15:27:38 -05:00
|
|
|
|
2023-03-08 00:19:29 -06:00
|
|
|
if [ -f /etc/profile.d/modules.sh ]; then
|
|
|
|
|
source /etc/profile.d/modules.sh
|
|
|
|
|
module load mpi &> /dev/null
|
2023-03-08 01:54:06 -06:00
|
|
|
fi
|
2022-04-04 15:27:38 -05:00
|
|
|
|
|
|
|
|
if [ -z "${1}" ]; then
|
2023-03-08 00:19:29 -06:00
|
|
|
: ${SHELL:=/bin/bash}
|
|
|
|
|
exec ${SHELL}
|
2022-04-04 15:27:38 -05:00
|
|
|
else
|
|
|
|
|
set -e
|
|
|
|
|
eval $@
|
|
|
|
|
fi
|