Commit ae7ef670 by Eric Coissac

protect ifs at dowload

parent c83c2254
......@@ -38,6 +38,8 @@
#
include logging
include ifs
logdebug "Load download package"
if ! which curl; then
......@@ -63,6 +65,8 @@ CURL="curl -L"
LECA_MAX_RETRY=3
function download() {
pushifs
logdebug "Function called with $# arguments"
logdebug "$@"
local URL="${1}"
......@@ -86,6 +90,8 @@ function download() {
loginfo "Downloading URL : ${URL}"
${LINK}
loginfo "URL : ${URL} -> Done."
popifs
}
function setmaxretry() {
......
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