Bug#289006: CVS java-package/lib
Jeroen van Wolffelaar
Jeroen van Wolffelaar <jeroen@wolffelaar.nl>, 289006@bugs.debian.org
Mon Jan 24 17:40:02 2005
Could you please test this and report back to the bug?
Thanks,
--Jeroen
On Mon, Jan 24, 2005 at 05:04:02PM -0700, Jeroen van Wolffelaar wrote:
> Update of /cvsroot/pkg-java/java-package/lib
> In directory haydn:/tmp/cvs-serv31457/lib
>
> Modified Files:
> common.sh
> Log Message:
> * Work around multiline df output caused by long device names
> (Closes: #289006)
function diskfree() {
local size="$1"
echo -n "Checking free diskspace:"
read dummy dummy free2 free dummy < <( df --block-size=1M "$tmp" | tail -n 1 )
# With long device names (devfsd) the number we're interested in might be
# shifted one entry to the left (#289006)
if [ "$free" -ne "${free%\%}" ]; then
free="$free2"
fi
if [ "$free" -ge "$size" ]; then
echo " done."
else
echo " <<< large user explaination here >>> "
read
fi
}
--
Jeroen van Wolffelaar
Jeroen@wolffelaar.nl (also for Jabber & MSN; ICQ: 33944357)
http://Jeroen.A-Eskwadraat.nl