summarylogtreecommitdiffstats
path: root/modules.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.sh')
-rw-r--r--modules.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules.sh b/modules.sh
index 279af7864080..d189fda1c37a 100644
--- a/modules.sh
+++ b/modules.sh
@@ -1,9 +1,9 @@
# init module enviroment
-if [[ -n $BASH_VERSION ]]; then
+if [[ `ps -hp $$ | awk '{print $5}'` = "bash" ]]; then
source /usr/Modules/default/init/bash
-elif [[ -n $ZSH_VERSION ]]; then
+elif [[ `ps -hp $$ | awk '{print $5}'` = "zsh" ]]; then
source /usr/Modules/default/init/zsh
fi