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
45090fc8
Commit
45090fc8
authored
Oct 01, 2022
by
Bjarne Saltbaek
Browse files
Better way to catch success or failure
parent
d761bdc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_cpanel.sh
View file @
45090fc8
...
@@ -139,7 +139,7 @@ _get_root() {
...
@@ -139,7 +139,7 @@ _get_root() {
}
}
_successful_update
()
{
_successful_update
()
{
if
(
echo
"
$_result
"
|
grep
-q
'newserial'
)
;
then return
0
;
fi
if
(
echo
"
$_result
"
|
_egrep_o
'data":\[[^]]*]'
|
grep
-q
'
"
newserial
":null
'
)
;
then return
1
;
fi
return
1
return
1
}
}
...
...
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