summaryrefslogtreecommitdiff
path: root/01_Functions.zsh
diff options
context:
space:
mode:
Diffstat (limited to '01_Functions.zsh')
-rw-r--r--01_Functions.zsh4
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