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
43011f3b
Unverified
Commit
43011f3b
authored
Nov 05, 2019
by
stilez
Committed by
GitHub
Nov 05, 2019
Browse files
enhance
parent
38854bd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_pleskxml.sh
View file @
43011f3b
...
@@ -203,10 +203,10 @@ _valuecut() {
...
@@ -203,10 +203,10 @@ _valuecut() {
printf
'%s'
"
$3
"
|
cut
-d
.
-f
"
${
1
}
-
${
2
}
"
printf
'%s'
"
$3
"
|
cut
-d
.
-f
"
${
1
}
-
${
2
}
"
}
}
# Counts '.' present in a domain name
# Counts '.' present in a domain name
or other string
# $1 = domain name
# $1 = domain name
_countdots
()
{
_countdots
()
{
_value
"
$1
"
|
tr
-dc
'.'
|
wc
-c
_value
"
$1
"
|
tr
-dc
'.'
|
wc
-c
|
sed
's/ //g'
}
}
# Cleans up an API response, splits it "one line per item in the response" and greps for a string that in the context, identifies "useful" lines
# Cleans up an API response, splits it "one line per item in the response" and greps for a string that in the context, identifies "useful" lines
...
...
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