Cleaned up some of the comments from shellcheck.

This commit is contained in:
Sebastiaan Hoogeveen 2019-02-05 16:37:08 +01:00
parent 1167cdcaec
commit b3e3e080a9

View File

@ -91,7 +91,7 @@ _get_root() {
fi fi
if _nederhost_rest GET "zones/${_domain}"; then if _nederhost_rest GET "zones/${_domain}"; then
if [ "${_code}" == "204" ]; then if [ "${_code}" = "204" ]; then
return 0; return 0;
fi fi
else else
@ -112,7 +112,7 @@ _nederhost_rest() {
export _H1="Authorization: Bearer $NederHost_Key" export _H1="Authorization: Bearer $NederHost_Key"
export _H2="Content-Type: application/json" export _H2="Content-Type: application/json"
:>$HTTP_HEADER :>"$HTTP_HEADER"
if [ "$m" != "GET" ]; then if [ "$m" != "GET" ]; then
_debug data "$data" _debug data "$data"