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
0ed26596
Commit
0ed26596
authored
Nov 28, 2020
by
Lorenz Stechauner
Browse files
World4You using ggrep more often
parent
94749330
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_world4you.sh
View file @
0ed26596
...
@@ -56,8 +56,7 @@ AddDnsRecordForm[uniqueFormIdTTL]=$formidttl&AddDnsRecordForm[_token]=$form_toke
...
@@ -56,8 +56,7 @@ AddDnsRecordForm[uniqueFormIdTTL]=$formidttl&AddDnsRecordForm[_token]=$form_toke
_ACME_CURL
=
"
$_ORIG_ACME_CURL
"
_ACME_CURL
=
"
$_ORIG_ACME_CURL
"
success
=
$(
grep
'302\|200'
<
"
$HTTP_HEADER
"
)
if
_ggrep
-q
'302\|200'
<
"
$HTTP_HEADER
"
;
then
if
[
"
$success
"
]
;
then
return
0
return
0
else
else
_err
"
$(
head
-n
1 <
"
$HTTP_HEADER
"
)
"
_err
"
$(
head
-n
1 <
"
$HTTP_HEADER
"
)
"
...
@@ -116,8 +115,7 @@ DeleteDnsRecordForm[_token]=$form_token"
...
@@ -116,8 +115,7 @@ DeleteDnsRecordForm[_token]=$form_token"
_ACME_CURL
=
"
$_ORIG_ACME_CURL
"
_ACME_CURL
=
"
$_ORIG_ACME_CURL
"
success
=
$(
grep
'302\|200'
<
"
$HTTP_HEADER
"
)
if
_ggrep
-q
'302\|200'
<
"
$HTTP_HEADER
"
;
then
if
[
"
$success
"
]
;
then
return
0
return
0
else
else
_err
"
$(
head
-n
1 <
"
$HTTP_HEADER
"
)
"
_err
"
$(
head
-n
1 <
"
$HTTP_HEADER
"
)
"
...
...
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