Mine
public text v1 · immutableif [[ -d /etc/profile.d ]] ; then
for sh in /etc/profile.d/*.sh ; do
if [ -r "$sh" ] ; then
. "$sh"
fi
done
unset sh
fi
if [[ -d /etc/profile.d ]] ; then
for sh in /etc/profile.d/*.sh ; do
if [ -r "$sh" ] ; then
. "$sh"
fi
done
unset sh
fi