fix: don't error when there's nothing to prune

This commit is contained in:
f 2024-12-28 17:40:26 -03:00
parent 290782424e
commit 0e6d890ee9
No known key found for this signature in database

View file

@ -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}"
;;