I like the new way better, because expansion is more straightforward.
Not that that matters in this case, but the new way seems to show up
more in these scripts, and it's good to be consistent ;)..
# $1 == MB required by the function
check_freespace()
{
# $1 == MB required by the function
check_freespace()
{
- SIZE=`(df -m -P ${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}"
if [ -z "$SIZE" ]
then
help_readman "Could not determine amount of room in ${WORKDIR}"