Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
4e9749f6
Unverified
Commit
4e9749f6
authored
Sep 16, 2022
by
Marc
Committed by
GitHub
Sep 16, 2022
Browse files
Prevent erasure of saved access token
parent
8ded5242
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_netlify.sh
View file @
4e9749f6
...
...
@@ -18,15 +18,15 @@ dns_netlify_add() {
NETLIFY_ACCESS_TOKEN
=
""
_err
"Please specify your Netlify Access Token and try again."
return
1
else
_saveaccountconf_mutable NETLIFY_ACCESS_TOKEN
"
$NETLIFY_ACCESS_TOKEN
"
fi
_info
"Using Netlify"
_debug fulldomain
"
$fulldomain
"
_debug txtvalue
"
$txtvalue
"
_saveaccountconf_mutable NETLIFY_ACCESS_TOKEN
"
$NETLIFY_ACCESS_TOKEN
"
if
!
_get_root
"
$fulldomain
"
"
$accesstoken
"
;
then
if
!
_get_root
"
$fulldomain
"
;
then
_err
"invalid domain"
return
1
fi
...
...
@@ -62,9 +62,9 @@ dns_netlify_rm() {
_debug txtdomain
"
$txtdomain
"
_debug txt
"
$txt
"
_saveaccountconf_mutable NETLIFY_ACCESS_TOKEN
"
$
NETLIFY_ACCESS_TOKEN
"
NETLIFY_ACCESS_TOKEN
=
"
${
NETLIFY_ACCESS_TOKEN
:-
$(
_readaccountconf_mutable
NETLIFY_ACCESS_TOKEN
)
}
"
if
!
_get_root
"
$txtdomain
"
"
$accesstoken
"
;
then
if
!
_get_root
"
$txtdomain
"
;
then
_err
"invalid domain"
return
1
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment