diff options
Diffstat (limited to 'sbt/sbt')
-rwxr-xr-x | sbt/sbt | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -29,10 +29,11 @@ JAR=sbt/sbt-launch-${SBT_VERSION}.jar if [ ! -f ${JAR} ]; then # Download printf "Attempting to fetch sbt\n" + JAR_DL=${JAR}.part if hash curl 2>/dev/null; then - curl --progress-bar ${URL1} > ${JAR} || curl --progress-bar ${URL2} > ${JAR} + (curl --progress-bar ${URL1} > ${JAR_DL} || curl --progress-bar ${URL2} > ${JAR_DL}) && mv ${JAR_DL} ${JAR} elif hash wget 2>/dev/null; then - wget --progress=bar ${URL1} -O ${JAR} || wget --progress=bar ${URL2} -O ${JAR} + (wget --progress=bar ${URL1} -O ${JAR_DL} || wget --progress=bar ${URL2} -O ${JAR_DL}) && mv ${JAR_DL} ${JAR} else printf "You do not have curl or wget installed, please install sbt manually from http://www.scala-sbt.org/\n" exit -1 |