Skip to content

Commit 521ba0f

Browse files
committed
Fix errors reported by Lint check
1 parent 2988b1a commit 521ba0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

getssl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ check_config() { # check the config files for all obvious errors
710710
config_errors=true
711711
fi
712712

713-
if [[ validate_via_dns ]]; then # using dns-01 challenge
713+
if validate_via_dns; then # using dns-01 challenge
714714
if [[ -z "$DNS_ADD_COMMAND" ]]; then
715715
info "${DOMAIN}: DNS_ADD_COMMAND not defined (whilst VALIDATE_VIA_DNS='${VALIDATE_VIA_DNS}')"
716716
config_errors=true
@@ -729,7 +729,7 @@ check_config() { # check the config files for all obvious errors
729729
if [[ "$(grep "^${d}$" "$tmplist")" = "$d" ]]; then
730730
info "${DOMAIN}: $d appears to be duplicated in domain, SAN list"
731731
config_errors=true
732-
elif [[ "$d" != "${d##\*.}" ]] && ! validate_via_dns $d; then
732+
elif [[ "$d" != "${d##\*.}" ]] && ! validate_via_dns "$d"; then
733733
info "${DOMAIN}: cannot use http-01 validation for wildcard domains"
734734
config_errors=true
735735
else
@@ -742,7 +742,7 @@ check_config() { # check the config files for all obvious errors
742742
DOMAIN_ACL="${ACL[$dn]}"
743743
fi
744744

745-
if ! validate_via_dns $d; then # using http-01 challenge
745+
if ! validate_via_dns "$d"; then # using http-01 challenge
746746
if [[ -z "${DOMAIN_ACL}" ]]; then
747747
info "${DOMAIN}: ACL location not specified for domain $d in $DOMAIN_DIR/getssl.cfg"
748748
config_errors=true
@@ -1416,7 +1416,7 @@ for d in "${alldomains[@]}"; do
14161416
((dn++))
14171417
else
14181418
PREVIOUSLY_VALIDATED="false"
1419-
if validate_via_dns $d; then # set up the correct DNS token for verification
1419+
if validate_via_dns "$d"; then # set up the correct DNS token for verification
14201420
if [[ $API -eq 1 ]]; then
14211421
# get the dns component of the ACME response
14221422
# get the token and uri from the dns component

0 commit comments

Comments
 (0)