From 0b3dcbe86d38d4a50b56da18b5c6e38e66eb27ac Mon Sep 17 00:00:00 2001 From: Stuart Cardall Date: Wed, 20 Sep 2017 13:40:47 +0000 Subject: [PATCH] update-ngxblocker: remove wget check from check_depends() * downloads are now via curl so remove wget check from check_depends() --- update-ngxblocker | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/update-ngxblocker b/update-ngxblocker index 0f15af31d..6f00937c9 100755 --- a/update-ngxblocker +++ b/update-ngxblocker @@ -201,13 +201,7 @@ check_mail_depends() { } check_depends() { - # centos does not have wget installed by default - if ! wget --help >/dev/null 2>&1; then - printf "${BOLDRED}ERROR${RESET}: $0 requires: 'wget' => ${BOLDWHITE}cannot download files.${RESET}\n" - exit 1 - fi - - # centos also does not have which by default + # centos does not have which by default if [ ! -x /usr/bin/curl ]; then printf "${BOLDRED}ERROR${RESET}: $0 requires: 'curl' => ${BOLDWHITE}cannot check remote version.${RESET}\n" exit 1