fix fix quota bug

This commit is contained in:
2015-07-10 23:39:30 +03:00
parent 28380d8c29
commit 2f2312ff56

View File

@@ -349,7 +349,7 @@ if [ "$ACTION" == "quota" ]; then
QUOTA=$(quota -gsl | tail -n 1 | awk -F" " '{ print $3 }' | sed 's/[A-Za-z]//g')
# If smaller than 1M, set usage to 1M to avoid miscalcuations
if [ $(echo $USAGE | grep -q "[A-Za-z]$" ; echo $?) = 0 ]; then
if [ $(echo $USAGE | grep -q "[A-Za-z]$" ; echo $?) != 0 ]; then
USAGE="1"
fi