From: Alexander Barton Date: Fri, 17 Sep 2010 09:52:35 +0000 (+0200) Subject: Only check quota(1) if a filesystem with quotas is mounted X-Git-Url: https://arthur.barton.de/gitweb/?p=ConfigScripts.git;a=commitdiff_plain;h=949dbef7f8ddb7fea7fd5ca6172bd740479f8e38 Only check quota(1) if a filesystem with quotas is mounted --- diff --git a/sys/profile b/sys/profile index 97a7e67..ce201d4 100644 --- a/sys/profile +++ b/sys/profile @@ -137,7 +137,10 @@ fi && . /etc/ksh.kshrc # Check filesystem quotas -which quota >/dev/null 2>&1 -[ $? -eq 0 ] && quota -q +mount | grep quota >/dev/null 2>&1 +if [ $? -eq 0 ]; then + which quota >/dev/null 2>&1 + [ $? -eq 0 ] && quota -q +fi # -eof-