Update dns_servercow.sh

fixed remaining issues from shellcheck
This commit is contained in:
Jens authored and GitHub committed 2017-12-09 20:18:05 +01:00
1 parent 1c9b19833c
commit 8101aceab5
1 file changed
+4 -4
+4 -4
View File
@@ -50,7 +50,7 @@ dns_servercow_add() {
_debug _domain "$_domain"
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"
return 0
else
@@ -92,8 +92,8 @@ dns_servercow_rm() {
_debug _sub_domain "$_sub_domain"
_debug _domain "$_domain"
if _servercow_api DELETE "$_domain" "{\"type\":\"TXT\",\"name\":\"$fulldomain\"}"; then
if printf -- "%s" "$response" | grep "ok" > /dev/null; then
if _servercow_api DELETE "$_domain" "{\"type\":\"TXT\",\"name\":\"$fulldomain\"}"; then
if printf -- "%s" "$response" | grep "ok" >/dev/null; then
_info "Deleted, OK"
_contains "$response" '"message":"ok"'
else
@@ -140,7 +140,7 @@ _get_root() {
p=$i
i=$(_math "$i" + 1)
done;
done
return 1
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.