Commit 2ca1dc66 authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

eget: fix download name on using curl backend (eterbug #17899)

parent 8f3be1b8
......@@ -1121,6 +1121,12 @@ url_sget()
return
fi
local FILENAME=$(url_get_filename "$URL")
if [ -n "$FILENAME" ] ; then
download_with_mirroring __curl "$URL" --remote-time --remote-header-name --output "$FILENAME"
return
fi
download_with_mirroring __curl "$URL" $CURLNAMEOPTIONS
}
......@@ -1616,4 +1622,3 @@ for fn in $(get_urls | filter_glob "$MASK" | filter_order) ; do
[ -n "$TARGETFILE" ] && [ "$ERROR" = "0" ] && break
done
exit $ERROR
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment