Blame SOURCES/environment-modules-profilesh-misdetects-login-shell.patch

03d577
diff --git a/init/profile.sh.in b/init/profile.sh.in
03d577
index faa468639..64d21dbcd 100644
03d577
--- a/init/profile.sh.in
03d577
+++ b/init/profile.sh.in
03d577
@@ -3,7 +3,11 @@
03d577
 # get current shell name by querying shell variables or looking at parent
03d577
 # process name
03d577
 if [ -n "${BASH:-}" ]; then
03d577
-   shell=${BASH##*/}
03d577
+   if [ "${BASH##*/}" = 'sh' ]; then
03d577
+      shell='sh'
03d577
+   else
03d577
+      shell='bash'
03d577
+   fi
03d577
 elif [ -n "${ZSH_NAME:-}" ]; then
03d577
    shell=$ZSH_NAME
03d577
 else
03d577