]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
fix shellcheck warnings
authorneilpang <github@byneil.com>
Sat, 12 Nov 2016 03:13:40 +0000 (11:13 +0800)
committerneilpang <github@byneil.com>
Sat, 12 Nov 2016 03:13:40 +0000 (11:13 +0800)
dnsapi/dns_cx.sh
dnsapi/dns_dp.sh
dnsapi/dns_gd.sh
dnsapi/dns_lexicon.sh
dnsapi/dns_me.sh
dnsapi/dns_ovh.sh
dnsapi/dns_pdns.sh

index 38649f3ebf5924aec38693491e46fe30cd9a1552..0caf0c0251869c7d1606ddff51bea3dd39fe0d53 100755 (executable)
@@ -17,6 +17,8 @@ dns_cx_add() {
   txtvalue=$2
 
   if [ -z "$CX_Key" ] || [ -z "$CX_Secret" ]; then
+    CX_Key=""
+    CX_Secret=""
     _err "You don't specify cloudxns.com  api key or secret yet."
     _err "Please create you key and try again."
     return 1
index a06f157b23bc004e37d4a97859a896922f9d24a4..aa06d5fcd5c52a63fc65bd5328d427aecd59daab 100755 (executable)
@@ -17,6 +17,8 @@ dns_dp_add() {
   txtvalue=$2
 
   if [ -z "$DP_Id" ] || [ -z "$DP_Key" ]; then
+    DP_Id=""
+    DP_Key=""
     _err "You don't specify dnspod api key and key id yet."
     _err "Please create you key and try again."
     return 1
index f96af9370e5fb2b2c9766a9281d105ec820cd324..9470ed22910bf73c7137d938c62513b84afe8562 100755 (executable)
@@ -16,6 +16,8 @@ dns_gd_add() {
   txtvalue=$2
 
   if [ -z "$GD_Key" ] || [ -z "$GD_Secret" ]; then
+    GD_Key=""
+    GD_Secret=""
     _err "You don't specify godaddy api key and secret yet."
     _err "Please create you key and try again."
     return 1
index 38b6a13cdfbfdd947ce0d1b137ce7801f6a343fe..a0f707a60f689dbf6d7a76a401d14eb4edb9db8d 100755 (executable)
@@ -22,6 +22,7 @@ dns_lexicon_add() {
   fi
 
   if [ -z "$PROVIDER" ]; then
+    PROVIDER=""
     _err "Please define env PROVIDER first: $wiki"
     return 1
   fi
index f231f7ed35ae9059e855e7c00a41a3ca91cc4fa8..edd88d984c441892780a45d8a5090bb98c0e5ca4 100755 (executable)
@@ -15,6 +15,8 @@ dns_me_add() {
   txtvalue=$2
 
   if [ -z "$ME_Key" ] || [ -z "$ME_Secret" ]; then
+    ME_Key=""
+    ME_Secret=""
     _err "You didn't specify DNSMadeEasy api key and secret yet."
     _err "Please create you key and try again."
     return 1
index ed8c42be7fd3a9319a6d6c3cb6029f74d89d5883..377b3de1e92f133939dd604cf9ac5b529d3c308b 100755 (executable)
@@ -86,6 +86,8 @@ dns_ovh_add() {
   txtvalue=$2
 
   if [ -z "$OVH_AK" ] || [ -z "$OVH_AS" ]; then
+    OVH_AK=""
+    OVH_AS=""
     _err "You don't specify OVH application key and application secret yet."
     _err "Please create you key and try again."
     return 1
index 0f6c59d529b479d53d1d0752aa3ef853232b5b71..5d6d99fd17f42eb4d881a09a8bf90a4da6e83ace 100755 (executable)
@@ -17,18 +17,21 @@ dns_pdns_add() {
   txtvalue=$2
 
   if [ -z "$PDNS_Url" ]; then
+    PDNS_Url=""
     _err "You don't specify PowerDNS address."
     _err "Please set PDNS_Url and try again."
     return 1
   fi
 
   if [ -z "$PDNS_ServerId" ]; then
+    PDNS_ServerId=""
     _err "You don't specify PowerDNS server id."
     _err "Please set you PDNS_ServerId and try again."
     return 1
   fi
 
   if [ -z "$PDNS_Token" ]; then
+    PDNS_Token=""
     _err "You don't specify PowerDNS token."
     _err "Please create you PDNS_Token and try again."
     return 1