Skip to content

Commit

Permalink
and for some reason axel wgets a 403 from typesafe :(
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenk committed Aug 19, 2015
1 parent 3b7c51c commit aa6446f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions mini-complete-example/sbt/sbt
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ if [ ! -f ${JAR} ]; then
# Download
printf "Attempting to fetch sbt\n"
JAR_DL=${JAR}.part
if hash axel 2>/dev/null; then
(axel ${URL1} --output ${JAR_DL} || axel ${URL2} --output ${JAR_DL}) && mv ${JAR_DL} ${JAR}
elif hash wget 2>/dev/null; then
if hash wget 2>/dev/null; then
(wget --progress=bar ${URL1} -O ${JAR_DL} || wget --progress=bar ${URL2} -O ${JAR_DL}) && mv ${JAR_DL} ${JAR}
elif hash curl 2>/dev/null; then
(curl -L --progress=bar ${URL1} -O ${JAR_DL} || curl -L --progress=bar ${URL2} -O ${JAR_DL}) && mv ${JAR_DL} ${JAR}
Expand Down
4 changes: 1 addition & 3 deletions sbt/sbt
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ if [ ! -f ${JAR} ]; then
# Download
printf "Attempting to fetch sbt\n"
JAR_DL=${JAR}.part
if hash axel 2>/dev/null; then
(axel ${URL1} --output ${JAR_DL} || axel ${URL2} --output ${JAR_DL}) && mv ${JAR_DL} ${JAR}
elif hash wget 2>/dev/null; then
if hash wget 2>/dev/null; then
(wget --progress=bar ${URL1} -O ${JAR_DL} || wget --progress=bar ${URL2} -O ${JAR_DL}) && mv ${JAR_DL} ${JAR}
elif hash curl 2>/dev/null; then
(curl -L --progress=bar ${URL1} -O ${JAR_DL} || curl -L --progress=bar ${URL2} -O ${JAR_DL}) && mv ${JAR_DL} ${JAR}
Expand Down

0 comments on commit aa6446f

Please sign in to comment.