Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix #2661

  • Loading branch information...
commit 3dacb18da57ff5222a8d754c76b130cc7308dc39 1 parent c09d568
@nolta nolta authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 deps/jldownload
View
6 deps/jldownload
@@ -16,18 +16,18 @@ FETCH_OPTS=
if [ $# -eq 1 ]; then
CURL_OPTS="$CURL_OPTS -O"
URL=$1
- URL_BASENAME=`basename $1`
- MIRROR_URL="$MIRROR_HOST/$URL_BASENAME"
elif [ $# -eq 2 ]; then
WGET_OPTS="$WGET_OPTS -O $1"
CURL_OPTS="$CURL_OPTS -o $1"
FETCH_OPTS="$FETCH_OPTS -o $1"
URL=$2
- MIRROR_URL="$MIRROR_HOST/$1"
else
exit 1
fi
+URL_BASENAME=`basename $URL`
+MIRROR_URL="$MIRROR_HOST/$URL_BASENAME"
+
if [ -x $CURL ]; then
GETURL="$CURL $CURL_OPTS"
elif [ -x $WGET ]; then
Please sign in to comment.
Something went wrong with that request. Please try again.