From 2f2312ff56ecd1c9d49ff2b8ff679b5abdf76d56 Mon Sep 17 00:00:00 2001 From: mxmehl Date: Fri, 10 Jul 2015 23:39:30 +0300 Subject: [PATCH] fix fix quota bug --- action.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.sh b/action.sh index 326f811..831300c 100755 --- a/action.sh +++ b/action.sh @@ -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