Browse Source

World4You fixed return value

pull/3261/head
Lorenz Stechauner 4 years ago
parent
commit
f665c73bb1
  1. 6
      dnsapi/dns_world4you.sh

6
dnsapi/dns_world4you.sh

@ -56,7 +56,7 @@ AddDnsRecordForm[uniqueFormIdTTL]=$formidttl&AddDnsRecordForm[_token]=$form_toke
return 0 return 0
else else
_err "$(_head_n 1 <"$HTTP_HEADER")" _err "$(_head_n 1 <"$HTTP_HEADER")"
return 2
return 1
fi fi
} }
@ -108,7 +108,7 @@ DeleteDnsRecordForm[_token]=$form_token"
return 0 return 0
else else
_err "$(_head_n 1 <"$HTTP_HEADER")" _err "$(_head_n 1 <"$HTTP_HEADER")"
return 2
return 1
fi fi
} }
@ -125,7 +125,7 @@ _login() {
_err "You didn't specify world4you username and password yet." _err "You didn't specify world4you username and password yet."
_err "Usage: export WORLD4YOU_USERNAME=<name>" _err "Usage: export WORLD4YOU_USERNAME=<name>"
_err "Usage: export WORLD4YOU_PASSWORD=<password>" _err "Usage: export WORLD4YOU_PASSWORD=<password>"
return 2
return 1
fi fi
_saveaccountconf_mutable WORLD4YOU_USERNAME "$WORLD4YOU_USERNAME" _saveaccountconf_mutable WORLD4YOU_USERNAME "$WORLD4YOU_USERNAME"

Loading…
Cancel
Save