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
92647379
Commit
92647379
authored
Oct 03, 2021
by
Bjarne Saltbaek
Browse files
First jq rework - 8. redo
parent
c9b353a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_cpanel.sh
View file @
92647379
...
...
@@ -118,7 +118,7 @@ _myget() {
_get_root
()
{
_myget
'json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_module=ZoneEdit&cpanel_jsonapi_func=fetchzones'
_domains
=
$(
echo
"
$_result
"
|
cut
-d
':'
-f1
1
|
sed
's/"//g'
|
sed
's/{//g'
)
_domains
=
$(
echo
"
$_result
"
|
cut
-d
':'
-f1
0
|
sed
's/"//g'
|
sed
's/{//g'
)
_debug
"_result is:
$_result
"
_debug
"_domains is:
$_domains
"
if
[
-z
"
$_domains
"
]
;
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