Skip to content
Snippets Groups Projects
Commit df92f1c0 authored by Holden Karau's avatar Holden Karau
Browse files

reindent

parent d7d95a09
No related branches found
No related tags found
No related merge requests found
...@@ -9,40 +9,40 @@ JAR=sbt/sbt-launch-${SBT_VERSION}.jar ...@@ -9,40 +9,40 @@ JAR=sbt/sbt-launch-${SBT_VERSION}.jar
printf "Checking for system sbt [" printf "Checking for system sbt ["
if hash sbt 2>/dev/null; then if hash sbt 2>/dev/null; then
printf "FOUND]\n" printf "FOUND]\n"
# Use System SBT # Use System SBT
sbt $@ sbt $@
else else
printf "NOT FOUND]\n" printf "NOT FOUND]\n"
# Download sbt or use already downloaded # Download sbt or use already downloaded
if [ ! -d .sbtlib ]; then if [ ! -d .sbtlib ]; then
mkdir .sbtlib mkdir .sbtlib
fi fi
if [ ! -f ${JAR} ]; then if [ ! -f ${JAR} ]; then
# Download # Download
printf "Attempting to fetch sbt\n" printf "Attempting to fetch sbt\n"
if hash curl 2>/dev/null; then if hash curl 2>/dev/null; then
curl --progress-bar ${URL1} > ${JAR} || curl --progress-bar ${URL2} > ${JAR} curl --progress-bar ${URL1} > ${JAR} || curl --progress-bar ${URL2} > ${JAR}
elif hash wget 2>/dev/null; then 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} || wget --progress=bar ${URL2} -O ${JAR}
else else
printf "You do not have curl or wget installed, please install sbt manually from http://www.scala-sbt.org/\n" printf "You do not have curl or wget installed, please install sbt manually from http://www.scala-sbt.org/\n"
exit exit
fi fi
fi fi
if [ ! -f ${JAR} ]; then if [ ! -f ${JAR} ]; then
# We failed to download # We failed to download
printf "Our attempt to download sbt locally to {$JAR} failed. Please install sbt manually from http://www.scala-sbt.org/\n" printf "Our attempt to download sbt locally to {$JAR} failed. Please install sbt manually from http://www.scala-sbt.org/\n"
exit exit
fi fi
printf "Launching sbt from .sbtlib\n" printf "Launching sbt from .sbtlib\n"
java \ java \
-Duser.timezone=UTC \ -Duser.timezone=UTC \
-Djava.awt.headless=true \ -Djava.awt.headless=true \
-Dfile.encoding=UTF-8 \ -Dfile.encoding=UTF-8 \
-XX:MaxPermSize=256m \ -XX:MaxPermSize=256m \
-Xmx1g \ -Xmx1g \
-noverify \ -noverify \
-jar ${JAR} \ -jar ${JAR} \
"$@" "$@"
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment