mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
Improve compatibility with *BSD xargs
The --no-run-if-empty option is a GNU extension and the long version isn't supported by *BSD variants. Instead use the short version (-r) which is present, but ignored as it is the default behavior, in at least FreeBSD: https://www.freebsd.org/cgi/man.cgi?xargs
This commit is contained in:
parent
51447961cb
commit
145b1f4fb3
@ -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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user