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

eget: don't use scat in sget

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