From 69925ce8230d98d7ea32a543d785a83391985ee9 Mon Sep 17 00:00:00 2001 From: neilpang Date: Sat, 12 Nov 2016 00:09:45 +0800 Subject: [PATCH] fix shellcheck warnings. --- dnsapi/dns_cx.sh | 2 +- dnsapi/dns_gd.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dnsapi/dns_cx.sh b/dnsapi/dns_cx.sh index c4d941da..45003745 100755 --- a/dnsapi/dns_cx.sh +++ b/dnsapi/dns_cx.sh @@ -189,7 +189,7 @@ _rest() { _H4="Content-Type: application/json" if [ "$data" ]; then - response="$(_post "$data" "$url" "" $m)" + response="$(_post "$data" "$url" "" "$m")" else response="$(_get "$url")" fi diff --git a/dnsapi/dns_gd.sh b/dnsapi/dns_gd.sh index dec80a9b..fed25d86 100755 --- a/dnsapi/dns_gd.sh +++ b/dnsapi/dns_gd.sh @@ -102,7 +102,7 @@ _gd_rest() { if [ "$data" ]; then _debug data "$data" - response="$(_post "$data" "$GD_Api/$ep" "" $m)" + response="$(_post "$data" "$GD_Api/$ep" "" "$m")" else response="$(_get "$GD_Api/$ep")" fi