]> git.pld-linux.org Git - packages/bash.git/commitdiff
- restore /etc/shrc.d processing fixes from rev 1.10.2.1
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 29 May 2005 13:02:30 +0000 (13:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bashrc -> 1.20

bashrc

diff --git a/bashrc b/bashrc
index c0a77b7300e7bf523812a3a9dafe1ba23544a9ca..8edf0b5717c07e25dcea0825ca31bbf1f9e799c6 100644 (file)
--- a/bashrc
+++ b/bashrc
@@ -17,9 +17,11 @@ export PS1
 alias which="type -p"
 
 # SYSTEM WIDE ALIASES ETC.
-for i in `find /etc/shrc.d -name '*.sh'` ; do
-       . $i
-done
-unset i
+if [ "$(echo /etc/shrc.d/*.sh)" != "/etc/shrc.d/*.sh" ]; then
+       for i in /etc/shrc.d/*.sh; do
+               . $i
+       done
+       unset i
+fi
 
 [ -n "$TERM" ] && tty >/dev/null 2>&1 && stty erase `tput kbs`
This page took 0.132777 seconds and 4 git commands to generate.