diff options
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions index aedb4369..c47ee90d 100644 --- a/scripts/functions +++ b/scripts/functions @@ -297,11 +297,11 @@ CT_DoGetFileCurl() { curl --ftp-pasv -O --retry 3 "$1" >/dev/null || curl -O --retry 3 "$1" >/dev/null || true } +_wget=`CT_Which wget` +_curl=`CT_Which curl` # Wrapper function to call one of curl or wget # Usage: CT_DoGetFile <URL> CT_DoGetFile() { - local _wget=`CT_Which wget` - local _curl=`CT_Which curl` case "${_wget},${_curl}" in ,) CT_DoError "Could find neither wget nor curl";; ,*) CT_DoGetFileCurl "$1" 2>&1 |CT_DoLog ALL;; |