Skip to content
This repository has been archived by the owner on Apr 9, 2019. It is now read-only.

Commit

Permalink
Updated Oracle website screen scraping. Fixes #58 and fixes #56
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Sep 17, 2012
1 parent d2a5841 commit 0d8f2a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oab-java.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# - http://irtfweb.ifa.hawaii.edu/~lockhart/gpg/gpg-cs.html # - http://irtfweb.ifa.hawaii.edu/~lockhart/gpg/gpg-cs.html


# Version # Version
VER="0.2.5" VER="0.2.6"


# common ############################################################### START # # common ############################################################### START #
sp="/-\|" sp="/-\|"
Expand Down Expand Up @@ -440,7 +440,7 @@ pid=$!;progress $pid


# See if the Java version is on the download frontpage, otherwise look for it in # See if the Java version is on the download frontpage, otherwise look for it in
# the previous releases page. # the previous releases page.
DOWNLOAD_INDEX=`grep -P -o "/technetwork/java/javase/downloads/jdk${JAVA_VER}-downloads-\d+\.html" /tmp/oab-index.html | uniq` DOWNLOAD_INDEX="$(egrep -o /technetwork/java/javase/downloads/jdk"$JAVA_VER(u$JAVA_UPD)?"-downloads-[[:digit:]]+\\.html /tmp/oab-index.html | head -1)"
ncecho " [x] Getting current release download page " ncecho " [x] Getting current release download page "
wget http://www.oracle.com/${DOWNLOAD_INDEX} -O /tmp/oab-download.html >> "$log" 2>&1 & wget http://www.oracle.com/${DOWNLOAD_INDEX} -O /tmp/oab-download.html >> "$log" 2>&1 &
pid=$!;progress $pid pid=$!;progress $pid
Expand Down

0 comments on commit 0d8f2a3

Please sign in to comment.