| Linux in-mum-web1499.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64 Path : /etc/profile.d/ |
| Current File : //etc/profile.d/modules.sh |
# shellcheck shell=sh
# get current shell name by querying shell variables or looking at parent
# process name
if [ -n "${BASH:-}" ]; then
if [ "${BASH##*/}" = 'sh' ]; then
shell='sh'
else
shell='bash'
fi
elif [ -n "${ZSH_NAME:-}" ]; then
shell=$ZSH_NAME
else
shell=$(/usr/bin/basename "$(/usr/bin/ps -p $$ -ocomm=)")
fi
if [ -f "/usr/share/Modules/init/$shell" ]; then
. "/usr/share/Modules/init/$shell"
else
. '/usr/share/Modules/init/sh'
fi