# $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}"