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
950d024a
Commit
950d024a
authored
Sep 14, 2019
by
Boot Lee
Committed by
neil
Sep 14, 2019
Browse files
fix grep error when txt value begin with - char (#2471)
parent
815a3be4
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_ali.sh
View file @
950d024a
...
...
@@ -185,7 +185,7 @@ _clean() {
return
1
fi
record_id
=
"
$(
echo
"
$response
"
|
tr
'{'
"
\n
"
|
grep
"
$_sub_domain
"
|
grep
"
$txtvalue
"
|
tr
","
"
\n
"
|
grep
RecordId |
cut
-d
'"'
-f
4
)
"
record_id
=
"
$(
echo
"
$response
"
|
tr
'{'
"
\n
"
|
grep
"
$_sub_domain
"
|
grep
--
"
$txtvalue
"
|
tr
","
"
\n
"
|
grep
RecordId |
cut
-d
'"'
-f
4
)
"
_debug2 record_id
"
$record_id
"
if
[
-z
"
$record_id
"
]
;
then
...
...
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