mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 21:21:42 +00:00
Update dns_servercow.sh
fixed remaining issues from shellcheck
This commit is contained in:
parent
1c9b19833c
commit
8101aceab5
@ -50,7 +50,7 @@ dns_servercow_add() {
|
|||||||
_debug _domain "$_domain"
|
_debug _domain "$_domain"
|
||||||
|
|
||||||
if _servercow_api POST "$_domain" "{\"type\":\"TXT\",\"name\":\"$fulldomain\",\"content\":\"$txtvalue\",\"ttl\":20}"; then
|
if _servercow_api POST "$_domain" "{\"type\":\"TXT\",\"name\":\"$fulldomain\",\"content\":\"$txtvalue\",\"ttl\":20}"; then
|
||||||
if printf -- "%s" "$response" | grep "ok" > /dev/null; then
|
if printf -- "%s" "$response" | grep "ok" >/dev/null; then
|
||||||
_info "Added, OK"
|
_info "Added, OK"
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
@ -93,7 +93,7 @@ dns_servercow_rm() {
|
|||||||
_debug _domain "$_domain"
|
_debug _domain "$_domain"
|
||||||
|
|
||||||
if _servercow_api DELETE "$_domain" "{\"type\":\"TXT\",\"name\":\"$fulldomain\"}"; then
|
if _servercow_api DELETE "$_domain" "{\"type\":\"TXT\",\"name\":\"$fulldomain\"}"; then
|
||||||
if printf -- "%s" "$response" | grep "ok" > /dev/null; then
|
if printf -- "%s" "$response" | grep "ok" >/dev/null; then
|
||||||
_info "Deleted, OK"
|
_info "Deleted, OK"
|
||||||
_contains "$response" '"message":"ok"'
|
_contains "$response" '"message":"ok"'
|
||||||
else
|
else
|
||||||
@ -140,7 +140,7 @@ _get_root() {
|
|||||||
|
|
||||||
p=$i
|
p=$i
|
||||||
i=$(_math "$i" + 1)
|
i=$(_math "$i" + 1)
|
||||||
done;
|
done
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user