mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 14:41:40 +00:00
fixing https://github.com/koalaman/shellcheck/wiki/SC2181 problems
This commit is contained in:
parent
efef76d9cf
commit
7d7e9501fa
@ -34,11 +34,10 @@ dns_nm_add() {
|
|||||||
|
|
||||||
zone="$(echo $fulldomain | _egrep_o "[^.]+.[^.]+$")"
|
zone="$(echo $fulldomain | _egrep_o "[^.]+.[^.]+$")"
|
||||||
get="https://namemaster.de/api/api.php?User=$NM_user&Password=$NM_md5&Antwort=csv&Int=0&Typ=ACME&Zone=$zone&hostname=$fulldomain&TXT=$txt_value&Action=Auto&Lifetime=3600"
|
get="https://namemaster.de/api/api.php?User=$NM_user&Password=$NM_md5&Antwort=csv&Int=0&Typ=ACME&Zone=$zone&hostname=$fulldomain&TXT=$txt_value&Action=Auto&Lifetime=3600"
|
||||||
erg="$(_get "$get")"
|
|
||||||
|
|
||||||
exit_code="$?"
|
if ! erg="$(_get "$get")"
|
||||||
if [ "$exit_code" != 0 ]; then
|
then
|
||||||
_err "error Ading $zone TXT: $txt_value"
|
_err "error Deleting $zone TXT: $txt_value"
|
||||||
_err "Error $exit_code"
|
_err "Error $exit_code"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@ -70,10 +69,9 @@ dns_nm_rm() {
|
|||||||
|
|
||||||
zone="$(echo $fulldomain | _egrep_o "[^.]+.[^.]+$")"
|
zone="$(echo $fulldomain | _egrep_o "[^.]+.[^.]+$")"
|
||||||
get="https://namemaster.de/api/api.php?User=$NM_user&Password=$NM_md5&Antwort=csv&Int=0&Typ=TXT&Zone=$zone&hostname=$fulldomain&TXT=$txt_value&Action=Delete_IN&TTL=0"
|
get="https://namemaster.de/api/api.php?User=$NM_user&Password=$NM_md5&Antwort=csv&Int=0&Typ=TXT&Zone=$zone&hostname=$fulldomain&TXT=$txt_value&Action=Delete_IN&TTL=0"
|
||||||
erg="$(_get "$get")"
|
|
||||||
|
|
||||||
exit_code="$?"
|
if ! erg="$(_get "$get")"
|
||||||
if [ "$exit_code" != "0" ]; then
|
then
|
||||||
_err "error Deleting $zone TXT: $txt_value"
|
_err "error Deleting $zone TXT: $txt_value"
|
||||||
_err "Error $exit_code"
|
_err "Error $exit_code"
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user