From 7be721c3ff1b83ae420b288f41dbb81f7fa2487a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Tue, 28 Nov 2006 02:20:50 +0000 Subject: [PATCH] faire que wc marche aussi avec le chemin absolu --- src/quota_get.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/quota_get.sh b/src/quota_get.sh index c72c0df7..7c6b63a4 100755 --- a/src/quota_get.sh +++ b/src/quota_get.sh @@ -7,6 +7,7 @@ SED=/bin/sed MOUNT=/bin/mount QUOTA=/usr/bin/quota GREP=/bin/grep +WC=/usr/bin/wc DATA_PART=`$DF ${ALTERNC_LOC} 2>/dev/null | $AWK '/^\// { print $1 }'` @@ -20,7 +21,7 @@ fi # quota will split its display on two lines if QUOTA_PART is bigger than 15 # characters. *sigh* -PART_LEN=`echo -n "$QUOTA_PART" | wc -c` +PART_LEN=`echo -n "$QUOTA_PART" | $WC -c` if [ "$PART_LEN" -gt 15 ]; then $QUOTA -g "$1" | $SED -n -e "\\;${QUOTA_PART};,+1s/ *\([0-9]*\) .*/\1/p" |