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

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