Add -r to xargs arguments

Why? Because if there is no certificates in /etc/letsencrypt it will call
evoacme with no args, resulting in an error.
This commit is contained in:
Benoît S. 2018-01-03 10:00:22 +01:00
parent e8c0e43cf0
commit edf7bceee6

View file

@ -11,4 +11,4 @@ CRT_DIR="${CRT_DIR:-'/etc/letsencrypt'}"
export QUIET=1
find "${CRT_DIR}" -maxdepth 1 -mindepth 1 -type d ! -path "*accounts" ! -path "*hooks" -printf "%f\n" | xargs -n1 evoacme
find "${CRT_DIR}" -maxdepth 1 -mindepth 1 -type d ! -path "*accounts" ! -path "*hooks" -printf "%f\n" | xargs -n1 -r evoacme