diff options
author | hugues <hugues@a0e5b806-a6f9-0310-978d-cbce73f8a913> | 2007-05-21 08:07:26 +0000 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2008-03-07 14:15:12 +0100 |
commit | deebeb13d889cbc35d846552552c0f443952ec64 (patch) | |
tree | 3de6d16543164167a96fd38a85d142f55cdb50dd /01_Functions.zsh | |
parent | 7d56cdbe6debcb4a1e393adb44faa45cbf62e6c4 (diff) |
=?utf-8?q?Divers=20correctifs
=20 *=20privileged=5Fuser=20!=3D=20root,=20donc=20seulement=20en=20cas=20de=20root
=20 *=20couleurs=20et=20autres=20dans=20Environnement=20plutot=20que=20Prompts
=20 *=20utilisation=20de=20[]=20plut=C3=B4t=20que=20test
=20 *=20et=20je=20sais=20plus...=20:)?=
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------1.5.4.1"
This is a multi-part message in MIME format.
--------------1.5.4.1
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit
git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@388 a0e5b806-a6f9-0310-978d-cbce73f8a913
Diffstat (limited to '01_Functions.zsh')
-rw-r--r-- | 01_Functions.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh index 4a0fcb7..29d7c60 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -49,10 +49,10 @@ cmd_exists () normal_user () { - if test -e /etc/login.defs + if [ -e /etc/login.defs ] then eval `grep -v '^[$#]' /etc/login.defs | grep "^UID_" | tr -d '[:blank:]' | sed 's/^[A-Z_]\+/&=/'` - test \( $UID -ge $UID_MIN \) -a \( $UID -le $UID_MAX \) + [ \( $UID -ge $UID_MIN \) -a \( $UID -le $UID_MAX \) ] else [ "`whoami`" != "root" ] fi |