Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update pull-binary-libs.sh to cope with curl not installed

  • Loading branch information...
commit 1bf6edcf4c7b264a82a347bf1f022bdf22de5cf0 1 parent 0cd7a67
@VladUreche VladUreche authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 pull-binary-libs.sh
View
12 pull-binary-libs.sh
@@ -2,6 +2,18 @@
#
# Script to pull binary artifacts for scala from the remote repository.
+# Avoid corrupting the jar cache in ~/.sbt and the ugly crash when curl is not installed
+# This affects Linux systems mostly, because wget is the default download tool and curl
+# is not installed at all.
+curl --version &> /dev/null
+if [ $? -ne 0 ]
+then
+ echo ""
+ echo "Please install curl to download the jar files necessary for building Scala."
+ echo ""
+ exit 1
+fi
+
. $(dirname $0)/tools/binary-repo-lib.sh
# TODO - argument parsing...
Please sign in to comment.
Something went wrong with that request. Please try again.