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
6e7ce1ee
Commit
6e7ce1ee
authored
Oct 20, 2021
by
Lorenz Stechauner
Browse files
dns_world4you: fix for freeBSD sed
Signed-off-by:
Lorenz Stechauner
<
lorenz.stechauner@necronda.net
>
parent
2a65955e
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_world4you.sh
View file @
6e7ce1ee
...
@@ -184,7 +184,7 @@ _get_paketnr() {
...
@@ -184,7 +184,7 @@ _get_paketnr() {
fqdn
=
"
$1
"
fqdn
=
"
$1
"
form
=
"
$2
"
form
=
"
$2
"
domains
=
$(
echo
"
$form
"
|
grep
'^ *[A-Za-z0-9_\.-]*\.[A-Za-z0-9_-]*$'
|
sed
's/^
\s
*\(
\S
*\)$/\1/'
)
domains
=
$(
echo
"
$form
"
|
grep
'^ *[A-Za-z0-9_\.-]*\.[A-Za-z0-9_-]*$'
|
sed
's/^
*\(
.
*\)$/\1/'
)
domain
=
''
domain
=
''
for
domain
in
$domains
;
do
for
domain
in
$domains
;
do
if
_contains
"
$fqdn
"
"
$domain
\$
"
;
then
if
_contains
"
$fqdn
"
"
$domain
\$
"
;
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