From 949dbef7f8ddb7fea7fd5ca6172bd740479f8e38 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 17 Sep 2010 11:52:35 +0200 Subject: [PATCH] Only check quota(1) if a filesystem with quotas is mounted --- sys/profile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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- -- 2.39.2