Merge pull request #2298 from kroepke/gcloud-bsd-support

Make dns_gcloud.sh BSD compatible
This commit is contained in:
neil 2019-05-28 20:47:00 +08:00 committed by GitHub
commit 3508e1e6d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ _dns_gcloud_execute_tr() {
} }
_dns_gcloud_remove_rrs() { _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." \ --name="$fulldomain." \
--ttl="$ttl" \ --ttl="$ttl" \
--type=TXT \ --type=TXT \
@ -108,7 +108,7 @@ _dns_gcloud_remove_rrs() {
_dns_gcloud_add_rrs() { _dns_gcloud_add_rrs() {
ttl=60 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." \ --name="$fulldomain." \
--ttl="$ttl" \ --ttl="$ttl" \
--type=TXT \ --type=TXT \