Fixes and improvements
This commit is contained in:
1 parent
ce0fe626b2
commit
82f50ae5c0
48 files changed
+63
-63
No files matched your search
@@ -15,7 +15,7 @@ monitor_curl() {
|
||||
|
||||
# --fail-with-body was added in curl 7.76; older builds (e.g. CentOS 7 ships
|
||||
# 7.29) would abort with an unknown-option error, so fall back to --fail.
|
||||
if curl --help 2>&1 | grep -q -- '--fail-with-body'; then
|
||||
if curl --help all 2>&1 | grep -q -- '--fail-with-body'; then
|
||||
CURL_FAIL_FLAG=--fail-with-body
|
||||
else
|
||||
CURL_FAIL_FLAG=--fail
|
||||
|
||||
Reference in new issue
Block a user