Browse Source
Persist dnsimple account id in config
pull/3578/head
vin01
4 years ago
No known key found for this signature in database
GPG Key ID: 885C28C3B043329D
1 changed files with
2 additions and
1 deletions
-
dnsapi/dns_dnsimple.sh
|
|
@ -124,8 +124,9 @@ _get_root() { |
|
|
_get_account_id() { |
|
|
_get_account_id() { |
|
|
_debug "retrive account id" |
|
|
_debug "retrive account id" |
|
|
|
|
|
|
|
|
# shellcheck disable=SC2154 |
|
|
|
|
|
|
|
|
DNSimple_ACCOUNT_ID="${DNSimple_ACCOUNT_ID:-$(_readaccountconf_mutable DNSimple_ACCOUNT_ID)}" |
|
|
if [ -n "$DNSimple_ACCOUNT_ID" ]; then |
|
|
if [ -n "$DNSimple_ACCOUNT_ID" ]; then |
|
|
|
|
|
_saveaccountconf_mutable DNSimple_ACCOUNT_ID "$DNSimple_ACCOUNT_ID" |
|
|
_account_id="$DNSimple_ACCOUNT_ID" |
|
|
_account_id="$DNSimple_ACCOUNT_ID" |
|
|
else |
|
|
else |
|
|
if ! _dnsimple_rest GET "whoami"; then |
|
|
if ! _dnsimple_rest GET "whoami"; then |
|
|
|