fix fix quota bug
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user