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
f17ec7a4
Unverified
Commit
f17ec7a4
authored
Apr 20, 2022
by
neil
Committed by
GitHub
Apr 20, 2022
Browse files
Merge pull request #4037 from ahwayakchih/master
Update dns_mydevil.sh
parents
deec6aab
515c9e78
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_mydevil.sh
View file @
f17ec7a4
...
...
@@ -74,7 +74,7 @@ dns_mydevil_rm() {
validRecords
=
"^
${
num
}${
w
}${
fulldomain
}${
w
}
TXT
${
w
}${
any
}${
txtvalue
}
$"
for
id
in
$(
devil dns list
"
$domain
"
|
tail
-n
+2 |
grep
"
${
validRecords
}
"
|
cut
-w
-s
-f
1
)
;
do
_info
"Removing record
$id
from domain
$domain
"
devil dns del
"
$domain
"
"
$id
"
||
_err
"Could not remove DNS record."
echo
"y"
|
devil dns del
"
$domain
"
"
$id
"
||
_err
"Could not remove DNS record."
done
}
...
...
@@ -87,7 +87,9 @@ mydevil_get_domain() {
domain
=
""
for
domain
in
$(
devil dns list |
cut
-w
-s
-f
1 |
tail
-n
+2
)
;
do
_debug
"Checking domain:
$domain
"
if
_endswith
"
$fulldomain
"
"
$domain
"
;
then
_debug
"Fulldomain '
$fulldomain
' matches '
$domain
'"
printf
--
"%s"
"
$domain
"
return
0
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