Follow redirection when downloading with curl (#6681)

pull/6683/head
Cedric Girard 6 years ago committed by Aleksander Machniak
parent 982919582c
commit c7677a5722

@ -24,7 +24,7 @@ if [ ! -r "$JAR_DIR/yuicompressor.jar" ]; then
if which wget >/dev/null 2>&1 && which unzip >/dev/null 2>&1; then
wget "$COMPILER_URL" -O "/tmp/$$.zip"
elif which curl >/dev/null 2>&1 && which unzip >/dev/null 2>&1; then
curl "$COMPILER_URL" -o "/tmp/$$.zip"
curl -L "$COMPILER_URL" -o "/tmp/$$.zip"
else
echo "Please download $COMPILER_URL and extract compiler.jar to $JAR_DIR/."
exit 1

Loading…
Cancel
Save