dns_gandi_livedns: fix shellcheck errors

This commit is contained in:
Frederic Crozat 2017-02-28 09:32:34 +01:00
parent 01b41f8565
commit a7bf82c865

View File

@ -104,7 +104,7 @@ _gandi_livedns_rest() {
export _H1="Content-Type: application/json"
export _H2="X-Api-Key: $GANDI_LIVEDNS_KEY"
if [ "$data" -o "$m" == "DELETE" ]; then
if [ "$data" ] || [ "$m" = "DELETE" ]; then
_debug data "$data"
response="$(_post "$data" "$GANDI_LIVEDNS_API/$ep" "" "$m")"
else