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
3508e1e6
Unverified
Commit
3508e1e6
authored
May 28, 2019
by
neil
Committed by
GitHub
May 28, 2019
Browse files
Merge pull request #2298 from kroepke/gcloud-bsd-support
Make dns_gcloud.sh BSD compatible
parents
51447961
145b1f4f
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_gcloud.sh
View file @
3508e1e6
...
...
@@ -93,7 +93,7 @@ _dns_gcloud_execute_tr() {
}
_dns_gcloud_remove_rrs
()
{
if
!
xargs
-
-no-run-if-empty
gcloud dns record-sets transaction remove
\
if
!
xargs
-
r
gcloud dns record-sets transaction remove
\
--name
=
"
$fulldomain
."
\
--ttl
=
"
$ttl
"
\
--type
=
TXT
\
...
...
@@ -108,7 +108,7 @@ _dns_gcloud_remove_rrs() {
_dns_gcloud_add_rrs
()
{
ttl
=
60
if
!
xargs
-
-no-run-if-empty
gcloud dns record-sets transaction add
\
if
!
xargs
-
r
gcloud dns record-sets transaction add
\
--name
=
"
$fulldomain
."
\
--ttl
=
"
$ttl
"
\
--type
=
TXT
\
...
...
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