From ddf9a38faff30d78f06ed83b17178617d0a2d83c Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Wed, 30 Jan 2013 14:53:38 +0000 Subject: [PATCH] bugfix: little noobism --- src/quota_get | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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