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

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