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

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