浏览代码

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

Make dns_gcloud.sh BSD compatible
neil 6 年之前
父节点
当前提交
3508e1e6d5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dnsapi/dns_gcloud.sh

+ 2 - 2
dnsapi/dns_gcloud.sh

@@ -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 \