Skip to content

Commit

Permalink
Fix indentatation
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenk committed Jan 6, 2014
1 parent d86dc74 commit 5a598b2
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions sbt/sbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,28 @@ else
printf "NOT FOUND]\n"
# Download sbt or use already downloaded
if [ ! -d .sbtlib ]; then
mkdir .sbtlib
mkdir .sbtlib
fi
if [ ! -f ${JAR} ]; then
# Download
printf "Attempting to fetch sbt\n"
if hash curl 2>/dev/null; then
curl --progress-bar ${URL1} > ${JAR} || curl --progress-bar ${URL2} > ${JAR}
elif hash wget 2>/dev/null; then
wget --progress=bar ${URL1} -O ${JAR} || wget --progress=bar ${URL2} -O ${JAR}
else
printf "You do not have curl or wget installed, please install sbt manually from http://www.scala-sbt.org/\n"
exit -1
fi
# Download
printf "Attempting to fetch sbt\n"
if hash curl 2>/dev/null; then
curl --progress-bar ${URL1} > ${JAR} || curl --progress-bar ${URL2} > ${JAR}
elif hash wget 2>/dev/null; then
wget --progress=bar ${URL1} -O ${JAR} || wget --progress=bar ${URL2} -O ${JAR}
else
printf "You do not have curl or wget installed, please install sbt manually from http://www.scala-sbt.org/\n"
exit -1
fi
fi
if [ ! -f ${JAR} ]; then
# 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"
exit -1
# 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"
exit -1
fi
printf "Launching sbt from .sbtlib\n"
java \
-Xmx1200m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=256m \
-jar ${JAR} \
"$@"
-jar ${JAR} \
"$@"
fi

0 comments on commit 5a598b2

Please sign in to comment.