Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
0ab14399
Commit
0ab14399
authored
May 25, 2020
by
DerVerruckteFuchs
Browse files
Fix broken grep so that One984HOSTING_COOKIE actually gets set, and isn't left empty.
parent
9190fdd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_1984hosting.sh
View file @
0ab14399
...
...
@@ -168,7 +168,7 @@ _1984hosting_login() {
_debug2 response
"
$response
"
if
[
"
$response
"
=
'{"loggedin": true, "ok": true}'
]
;
then
One984HOSTING_COOKIE
=
"
$(
grep
'^
S
et-
C
ookie:'
"
$HTTP_HEADER
"
| _tail_n 1 | _egrep_o
'sessionid=[^;]*;'
|
tr
-d
';'
)
"
One984HOSTING_COOKIE
=
"
$(
grep
'^
s
et-
c
ookie:'
"
$HTTP_HEADER
"
| _tail_n 1 | _egrep_o
'sessionid=[^;]*;'
|
tr
-d
';'
)
"
export
One984HOSTING_COOKIE
_saveaccountconf_mutable One984HOSTING_COOKIE
"
$One984HOSTING_COOKIE
"
return
0
...
...
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