From 0e6d890ee9267a47f4f91e9de3ce12aeae623fbe Mon Sep 17 00:00:00 2001 From: f Date: Sat, 28 Dec 2024 17:40:26 -0300 Subject: [PATCH] fix: don't error when there's nothing to prune --- certbotd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbotd.sh b/certbotd.sh index 41102d0..b334c32 100755 --- a/certbotd.sh +++ b/certbotd.sh @@ -117,7 +117,7 @@ case $1 in done fi - comm -13 <(realpath /etc/letsencrypt/live/*/*.pem | sort) <(find /etc/letsencrypt/archive/ -name "*.pem" | sort) | xargs rm -v + comm -13 <(realpath /etc/letsencrypt/live/*/*.pem | sort) <(find /etc/letsencrypt/archive/ -name "*.pem" | sort) | xargs -r rm -v touch "${updated}" ;;