From 13111ef2b00db500c89f53fd012ba6abb3aa8228 Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Fri, 16 Oct 2026 19:34:47 +0200 Subject: [PATCH] Add cleanup --- utils/create_ca_hashes.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/create_ca_hashes.sh b/utils/create_ca_hashes.sh index 14f944f2..6386256a 100755 --- a/utils/create_ca_hashes.sh +++ b/utils/create_ca_hashes.sh @@ -6,7 +6,8 @@ # This file generates the file etc/ca_hashes.txt from the (root)certificate # Bundles in etc (etc/*.pem) -TEMPDIR="/tmp" +TEMPDIR=$(mktemp -d) +trap 'rm -rf "$TEMPDIR"' EXIT # Check if we are in the right directory if [[ ! -e etc ]]; then