fixed curl check (fixes #112)

This commit is contained in:
Lukas Schauer
2016-01-26 17:16:34 +01:00
parent 79b17feb9b
commit 36a03146c9

View File

@@ -26,8 +26,8 @@ check_dependencies() {
# curl returns with an error code in some ancient versions so we have to catch that
set +e
curl -V > /dev/null 2>&1
set -e
retcode="$?"
set -e
if [[ ! "${retcode}" = "0" ]] && [[ ! "${retcode}" = "2" ]]; then
_exiterr "This script requires curl."
fi