Fix double quotes after build fail

This commit is contained in:
Kent Varmedal 2019-08-20 11:41:43 +02:00
parent 3d4101418b
commit 34534dba76

View File

@ -26,7 +26,7 @@ dns_domeneshop_add() {
_saveaccountconf_mutable DOMENESHOP_Secret "$DOMENESHOP_Secret" _saveaccountconf_mutable DOMENESHOP_Secret "$DOMENESHOP_Secret"
# Get the domain name id # Get the domain name id
if ! _get_domainid $fulldomain; then if ! _get_domainid "$fulldomain"; then
_err "Did not find domainname" _err "Did not find domainname"
return 1 return 1
fi fi
@ -53,13 +53,13 @@ dns_domeneshop_rm() {
fi fi
# Get the domain name id # Get the domain name id
if ! _get_domainid $fulldomain; then if ! _get_domainid "$fulldomain"; then
_err "Did not find domainname" _err "Did not find domainname"
return 1 return 1
fi fi
# Find record # Find record
if ! _get_recordid $_domainid $_sub_domain $txtvalue; then if ! _get_recordid "$_domainid" "$_sub_domain" "$txtvalue"; then
_err "Did not find dns record" _err "Did not find dns record"
return 1 return 1
fi fi
@ -141,9 +141,9 @@ _domeneshop_rest() {
export _H2="Content-Type: application/json" export _H2="Content-Type: application/json"
if [ "$method" != "GET" ]; then if [ "$method" != "GET" ]; then
response="$(_post "$data" "$DOMENESHOP_Api_Endpoint/$endpoint" "" "$method")"; response="$(_post "$data" "$DOMENESHOP_Api_Endpoint/$endpoint" "" "$method")"
else else
response="$(_get "$DOMENESHOP_Api_Endpoint/$endpoint")"; response="$(_get "$DOMENESHOP_Api_Endpoint/$endpoint")"
fi fi
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then