Permalink
Browse files

fix #2661

  • Loading branch information...
1 parent c09d568 commit 3dacb18da57ff5222a8d754c76b130cc7308dc39 @nolta nolta committed Mar 24, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 deps/jldownload
View
@@ -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

0 comments on commit 3dacb18

Please sign in to comment.