mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-09 16:01:46 +00:00
Dont use $? directly anymore
This commit is contained in:
parent
142ca58d38
commit
e1e1ee31f0
@ -36,9 +36,10 @@ dns_nm_add() {
|
||||
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")"
|
||||
|
||||
if [ "$?" != "0" ]; then
|
||||
exit_code="$?"
|
||||
if [ "$exit_code" != 0 ]; then
|
||||
_err "error Ading $zone TXT: $txt_value"
|
||||
_err "Error $?"
|
||||
_err "Error $exit_code"
|
||||
return 1
|
||||
fi
|
||||
|
||||
@ -70,9 +71,11 @@ dns_nm_rm() {
|
||||
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"
|
||||
erg="$(_get "$get")"
|
||||
if [ "$?" != "0" ]; then
|
||||
|
||||
exit_code="$?"
|
||||
if [ "$exit_code" != "0" ]; then
|
||||
_err "error Deleting $zone TXT: $txt_value"
|
||||
_err "Error $?"
|
||||
_err "Error $exit_code?"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user