Skip to content

Commit

Permalink
fix #2661
Browse files Browse the repository at this point in the history
  • Loading branch information
nolta committed Mar 24, 2013
1 parent c09d568 commit 3dacb18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deps/jldownload
Expand Up @@ -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
Expand Down

0 comments on commit 3dacb18

Please sign in to comment.