]> git.pld-linux.org Git - projects/setup.git/commitdiff
profile: skip reading /etc/env.d non-files (dirs)
authorElan Ruusamäe <glen@delfi.ee>
Mon, 7 Apr 2014 14:31:56 +0000 (17:31 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 7 Apr 2014 14:31:56 +0000 (17:31 +0300)
etc/profile

index fd4c7f268a61dc0d6e3641cf89ac72a809acc707..718ff2197681f9c669e281148f4b56973123ee0e 100644 (file)
@@ -119,6 +119,9 @@ if [ -f /etc/profile.env ]; then
        . /etc/profile.env
 else
        for i in /etc/env.d/* ; do
+               # skip not-regular files
+               test -f "$i" || continue
+
                NAME=${i##*/}
                case $NAME in
                        *~ | *.bak | *.old | *.rpmnew | *.rpmsave | *.zwc )
This page took 0.177491 seconds and 4 git commands to generate.