Commit e6d816c3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: add --get-filename to sget

parent 9934126e
......@@ -938,6 +938,10 @@ sget()
local URL="$1"
local TARGET="$2"
[ "$TARGET" = "-" ] && TARGET="/dev/stdout"
if [ -n "$GETFILENAME" ] ; then
get_filename "$URL"
exit
fi
local REALURL="$(get_real_url "$URL")" || return
......
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