Commit 0280667d authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: don't use scat in sget

parent af5b9c6a
......@@ -932,13 +932,11 @@ scat()
sget()
{
local URL="$1"
if [ "$2" = "/dev/stdout" ] || [ "$2" = "-" ] ; then
scat "$URL"
return
local TARGET="$2"
[ "$TARGET" = "-" ] && TARGET="/dev/stdout"
fi
local REALURL="$(get_real_url "$URL")" || return
local TARGET="$2"
if [ -n "$GETREALURL" ] ; then
echo "$REALURL"
......
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