Skip to content

Commit 1bf6edc

Browse files
committed
Update pull-binary-libs.sh to cope with curl not installed
1 parent 0cd7a67 commit 1bf6edc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pull-binary-libs.sh

+12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
#
33
# Script to pull binary artifacts for scala from the remote repository.
44

5+
# Avoid corrupting the jar cache in ~/.sbt and the ugly crash when curl is not installed
6+
# This affects Linux systems mostly, because wget is the default download tool and curl
7+
# is not installed at all.
8+
curl --version &> /dev/null
9+
if [ $? -ne 0 ]
10+
then
11+
echo ""
12+
echo "Please install curl to download the jar files necessary for building Scala."
13+
echo ""
14+
exit 1
15+
fi
16+
517
. $(dirname $0)/tools/binary-repo-lib.sh
618

719
# TODO - argument parsing...

0 commit comments

Comments
 (0)