Commit 5f68012c authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: clean warnings

parent 812969df
...@@ -111,8 +111,8 @@ WGETUSERAGENT='' ...@@ -111,8 +111,8 @@ WGETUSERAGENT=''
CURLUSERAGENT='' CURLUSERAGENT=''
WGETQ='' #-q WGETQ='' #-q
CURLQ='' #-s CURLQ='' #-s
WGETOPTIONS='--content-disposition' WGETNAMEOPTIONS='--content-disposition'
CURLOPTIONS='--remote-name --remote-header-name' CURLNAMEOPTIONS='--remote-name --remote-header-name'
set_quiet() set_quiet()
{ {
...@@ -162,13 +162,13 @@ scat() ...@@ -162,13 +162,13 @@ scat()
sget() sget()
{ {
if [ -n "$2" ] ; then if [ -n "$2" ] ; then
docmd __wget $WGETOPTIONS -O "$2" "$1" docmd __wget -O "$2" "$1"
else else
# TODO: поддержка rsync для известных хостов? # TODO: поддержка rsync для известных хостов?
# Не качать, если одинаковый размер и дата # Не качать, если одинаковый размер и дата
# -nc # -nc
# TODO: overwrite always # TODO: overwrite always
docmd __wget $WGETOPTIONS "$1" docmd __wget $WGETNAMEOPTIONS "$1"
fi fi
} }
...@@ -192,9 +192,9 @@ scat() ...@@ -192,9 +192,9 @@ scat()
sget() sget()
{ {
if [ -n "$2" ] ; then if [ -n "$2" ] ; then
__curl $CURLOPTIONS --output "$2" "$1" __curl --output "$2" "$1"
else else
__curl $CURLOPTIONS -O "$1" __curl $CURLNAMEOPTIONS "$1"
fi fi
} }
fi fi
......
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