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
9bbcfead
Unverified
Commit
9bbcfead
authored
May 07, 2020
by
Philipp Bandow
Committed by
GitHub
May 07, 2020
Browse files
Bugfix shell format error
parent
81036894
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_njalla.sh
View file @
9bbcfead
...
@@ -90,7 +90,7 @@ dns_njalla_rm() {
...
@@ -90,7 +90,7 @@ dns_njalla_rm() {
if
[
"
$count
"
=
"0"
]
;
then
if
[
"
$count
"
=
"0"
]
;
then
_info
"Don't need to remove."
_info
"Don't need to remove."
else
else
echo
"
$records
"
|
while
read
-r
record
;
do
echo
"
$records
"
|
while
read
-r
record
;
do
record_name
=
$(
echo
"
$record
"
| _egrep_o
"
\"
name
\"
:
\s
?
\"
[^
\"
]*
\"
"
|
cut
-d
:
-f
2 |
tr
-d
" "
|
tr
-d
\"
)
record_name
=
$(
echo
"
$record
"
| _egrep_o
"
\"
name
\"
:
\s
?
\"
[^
\"
]*
\"
"
|
cut
-d
:
-f
2 |
tr
-d
" "
|
tr
-d
\"
)
record_content
=
$(
echo
"
$record
"
| _egrep_o
"
\"
content
\"
:
\s
?
\"
[^
\"
]*
\"
"
|
cut
-d
:
-f
2 |
tr
-d
" "
|
tr
-d
\"
)
record_content
=
$(
echo
"
$record
"
| _egrep_o
"
\"
content
\"
:
\s
?
\"
[^
\"
]*
\"
"
|
cut
-d
:
-f
2 |
tr
-d
" "
|
tr
-d
\"
)
record_id
=
$(
echo
"
$record
"
| _egrep_o
"
\"
id
\"
:
\s
?[0-9]+"
|
cut
-d
:
-f
2 |
tr
-d
" "
|
tr
-d
\"
)
record_id
=
$(
echo
"
$record
"
| _egrep_o
"
\"
id
\"
:
\s
?[0-9]+"
|
cut
-d
:
-f
2 |
tr
-d
" "
|
tr
-d
\"
)
...
...
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