From 5a8dd3c6971358dccfdf9ac862f34571b09d076b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 24 Mar 2010 07:46:31 -0400 Subject: [PATCH] Don't force df line to end in $WORKDIR in sysresccd-custom. "df -m -P $WORKDIR" should only have returned that entry, and the match breaks if $WORKDIR is a subdirectory of a mount point. --- .../sys-apps/sysresccd-scripts/files/sysresccd-custom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-custom b/portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-custom index 2cd8484..e992ebe 100755 --- a/portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-custom +++ b/portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-custom @@ -73,7 +73,7 @@ die() # $1 == MB required by the function check_freespace() { - SIZE=`(df -m -P ${WORKDIR}) | grep " ${WORKDIR}$" | tail -n 1 | awk '{print $4}'` + SIZE=`(df -m -P ${WORKDIR}) | tail -n 1 | awk '{print $4}'` if [ -z "$SIZE" ] then help_readman "Could not determine amount of room in ${WORKDIR}" -- 2.26.2