summaryrefslogtreecommitdiffstats
path: root/el6/modules.sh
blob: 48cc32491d8f4c6df8edcdfadf1acd08cabe92b6 (plain)
1
2
3
4
5
6
7
shell=`/bin/basename \`/bin/ps -p $$ -ocomm=\``
if [ -f /usr/share/Modules/init/$shell ]
then
  . /usr/share/Modules/init/$shell
else
  . /usr/share/Modules/init/sh
fi