mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-10 15:12:43 +02:00
fixed curl check (fixes #112)
This commit is contained in:
+1
-1
@@ -26,8 +26,8 @@ check_dependencies() {
|
|||||||
# curl returns with an error code in some ancient versions so we have to catch that
|
# curl returns with an error code in some ancient versions so we have to catch that
|
||||||
set +e
|
set +e
|
||||||
curl -V > /dev/null 2>&1
|
curl -V > /dev/null 2>&1
|
||||||
set -e
|
|
||||||
retcode="$?"
|
retcode="$?"
|
||||||
|
set -e
|
||||||
if [[ ! "${retcode}" = "0" ]] && [[ ! "${retcode}" = "2" ]]; then
|
if [[ ! "${retcode}" = "0" ]] && [[ ! "${retcode}" = "2" ]]; then
|
||||||
_exiterr "This script requires curl."
|
_exiterr "This script requires curl."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user