]> git.pld-linux.org Git - projects/setup.git/commitdiff
- skip /etc/env.d/*.zwc (zsh compiled) files,
authorTomasz Pala <gotar@pld-linux.org>
Wed, 27 May 2009 11:43:22 +0000 (11:43 +0000)
committerTomasz Pala <gotar@pld-linux.org>
Wed, 27 May 2009 11:43:22 +0000 (11:43 +0000)
- quote env.d and shrc.d file names

Changed files:
    etc/profile -> 1.52

etc/profile

index ef781398c8894ac0a1a9c85199ea7273ff80207f..be96eacc4eb679f02e7d48fa1062d7679da33ba2 100644 (file)
@@ -50,7 +50,7 @@ fi
 
 case "$SH" in
   bash)
-       # currently - nothing
+       # currently - nothing
        ;;
   ksh|pdksh)
        PS2='> '
@@ -121,12 +121,12 @@ else
        for i in /etc/env.d/* ; do
                NAME=${i##*/}
                case $NAME in
-                       *~ | *.bak | *.old | *.rpmnew | *.rpmsave )
+                       *~ | *.bak | *.old | *.rpmnew | *.rpmsave | *.zwc )
                                # nothing
                                ;;
                        * )
-                               if [ -r $i ]; then
-                                       . $i; export $NAME
+                               if [ -r "$i" ]; then
+                                       . "$i"; export "$NAME"
                                fi
                                ;;
                esac
@@ -136,7 +136,7 @@ fi
 
 # Scripts:
 for i in /etc/profile.d/*.sh ; do
-       . $i
+       . "$i"
 done
 
 unset i
This page took 0.039938 seconds and 4 git commands to generate.