fixed "sed: invalid option -- 'E'"

This commit is contained in:
Ewald Dieterich
2018-02-22 11:08:12 +01:00
committed by Lukas Schauer
parent a6e6aa7445
commit a6a07779ad

View File

@@ -713,7 +713,7 @@ sign_csr() {
fi
# Check if authorization has already been validated
if [ "$(echo "${response}" | sed -E 's/"challenges": \[\{.*\}\]//' | get_json_string_value status)" = "valid" ] && [ ! "${PARAM_FORCE:-no}" = "yes" ]; then
if [ "$(echo "${response}" | _sed 's/"challenges": \[\{.*\}\]//' | get_json_string_value status)" = "valid" ] && [ ! "${PARAM_FORCE:-no}" = "yes" ]; then
echo " + Found valid authorization for ${identifier}"
continue
fi