some additional fixes and removed awk

This commit is contained in:
boyanpeychev 2017-03-15 15:52:05 +02:00
parent f063dd195e
commit 136d1b04b5

View File

@ -153,7 +153,7 @@ _dns_cloudns_http_api_call() {
_debug CLOUDNS_AUTH_ID "$CLOUDNS_AUTH_ID"
_debug CLOUDNS_AUTH_PASSWORD "$CLOUDNS_AUTH_PASSWORD"
if [ -z $2 ]; then
if [ -z "$2" ]; then
data="auth-id=$CLOUDNS_AUTH_ID&auth-password=$CLOUDNS_AUTH_PASSWORD"
else
data="auth-id=$CLOUDNS_AUTH_ID&auth-password=$CLOUDNS_AUTH_PASSWORD&$2"