Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
9aed1e2d
Commit
9aed1e2d
authored
Jul 01, 2017
by
RaidenII
Browse files
Argh. Double quotes.
parent
63c6ed3f
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_duckdns.sh
View file @
9aed1e2d
...
@@ -17,7 +17,7 @@ dns_duckdns_add() {
...
@@ -17,7 +17,7 @@ dns_duckdns_add() {
txtvalue
=
$2
txtvalue
=
$2
# We'll extract the domain/username from full domain
# We'll extract the domain/username from full domain
DuckDNS_Domain
=
$(
echo
$fulldomain
| _lower_case | _egrep_o
'.[^.]*.duckdns.org'
|
cut
-d
.
-f
2
)
DuckDNS_Domain
=
$(
echo
"
$fulldomain
"
| _lower_case | _egrep_o
'.[^.]*.duckdns.org'
|
cut
-d
.
-f
2
)
if
[
-z
"
$DuckDNS_Domain
"
]
;
then
if
[
-z
"
$DuckDNS_Domain
"
]
;
then
_err
"Error extracting the domain."
_err
"Error extracting the domain."
...
...
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