Commit 01ae7ac0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

download_url: use epm tool eget instead of wget

parent eb95ad9a
......@@ -13,8 +13,6 @@ which rsync &>/dev/null && RSYNC=rsync || GET=false
download_url()
{
epm assure wget || fatal "Can't download, wget command is missed"
local NAME="$(basename "$1")"
# TODO
# do not download if already exists...
......@@ -23,8 +21,7 @@ download_url()
# NOTE: disable cert checking
# use wget with try=1 and timeout = 30 sec
showcmd wget --no-check-certificate --unlink -c -t 1 -T 30 "$1" -O "$NAME"
a= wget --no-check-certificate --unlink -c -t 1 -T 30 "$1" -O "$NAME" && test -r "$NAME" && return
docmd epm tool eget -O "$NAME" "$1" && test -r "$NAME" && return
rm -f "$NAME"
return 1
......
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