mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
760 B

--- j2sdk-1_4_2_08-linux-i586.bin 2005-05-21 03:31:21.000000000 +0200
+++ java.bin 2005-05-21 11:43:00.000000000 +0200
@@ -355,7 +355,7 @@
esac
done
outname=install.sfx.$$
-diskSpace=`df -k . | tail -1 | awk '{if ( $4 ~ /%/) { print $3 } else { print $4 } }'`
+diskSpace=`df -k . | tail -n1 | awk '{if ( $4 ~ /%/) { print $3 } else { print $4 } }'`
if [ $diskSpace -lt $diskSpaceRequired ]; then
printf "You will need atleast %s kBytes of Disk Free\n" $diskSpaceRequired
printf "Please free up the required Disk Space and try again\n"
@@ -363,7 +363,7 @@
fi
trap 'rm -f $outname; exit 1' HUP INT QUIT TERM
echo "Unpacking..."
-tail +511 $0 > $outname
+tail -n+511 $0 > $outname
if [ -x /usr/bin/sum ] ; then
echo "Checksumming..."