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