Skip to content

Commit 804f127

Browse files
committed
profile: exclude bash for POSIX too.
1 parent 54c0dfc commit 804f127

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

profile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@ export TZ="$(readlink /etc/localtime | sed -e 's/^\.\.//g' -e 's@/usr/share/zone
3939

4040
# Source profile scripts
4141
for script in /etc/profile.d/* ; do
42-
# No! Go away, csh!
43-
case "$script" in *.csh) continue;; esac
42+
case "$script" in
43+
*.csh) # No! Go away, csh!
44+
continue;;
45+
*.bash)
46+
[ "$BASH" ] || continue;;
47+
esac
4448
[ -r "$script" ] && . "$script"
4549
done
4650

0 commit comments

Comments
 (0)