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

Commit

Permalink
Merge pull request #20 from martinp/master
Browse files Browse the repository at this point in the history
Fix retrieval of files
  • Loading branch information
flexiondotorg committed Apr 2, 2012
2 parents d0d9ad1 + ff2e1d2 commit 9e9036b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oab-java6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,11 @@ do
# Get the download URL and size
DOWNLOAD_URL=`grep ${JAVA_BIN} /tmp/oab-download.html | cut -d'{' -f2 | cut -d',' -f3 | cut -d'"' -f4`
DOWNLOAD_SIZE=`grep ${JAVA_BIN} /tmp/oab-download.html | cut -d'{' -f2 | cut -d',' -f2 | cut -d':' -f2 | sed 's/"//g'`
# Cookies required for download
COOKIES="oraclelicensejdk-${JAVA_VER}u${JAVA_UPD}-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com"

ncecho " [x] Downloading ${JAVA_BIN} : ${DOWNLOAD_SIZE} "
wget -c "${DOWNLOAD_URL}" -O /var/local/oab/pkg/${JAVA_BIN} >> "$log" 2>&1 &
wget --header="Cookie: ${COOKIES}" -c "${DOWNLOAD_URL}" -O /var/local/oab/pkg/${JAVA_BIN} >> "$log" 2>&1 &
pid=$!;progress_loop $pid

ncecho " [x] Symlinking ${JAVA_BIN} "
Expand Down

0 comments on commit 9e9036b

Please sign in to comment.