diff --git a/src/quota_get b/src/quota_get index 856ac0c5..1ee53a72 100755 --- a/src/quota_get +++ b/src/quota_get @@ -46,13 +46,13 @@ quot=$(sudo quota -wvg "$MID" | grep "$QUOTA_PART" | $AWK 'NR==1 {print $1;}' ) #first by testing if the partition is referenced by UUID val=$(sudo quota -vwg "$MID" |grep "$UUID" | awk 'END { print $2 "\n" $3; }') if [ -z "$val" ] ; then - val=$(sudo quota -A -wg "$MID" |grep "$QUOTA_PART" | awk '{ print $2 "\n" $3; }') + val=$(sudo quota -A -wg "$MID" |grep "$QUOTA_PART" | awk 'END { print $2 "\n" $3; }') # If the quota aren't activated, I return something anyway if [ -z "$val" ] ; then echo -e "0\n0" else - echo -e "0\n0" + echo -e "$val" fi else