mirror of
https://github.com/drwetter/testssl.sh.git
synced 2026-10-25 10:35:12 +01:00
Add cleanup
This commit is contained in:
@@ -6,7 +6,8 @@
|
|||||||
# This file generates the file etc/ca_hashes.txt from the (root)certificate
|
# This file generates the file etc/ca_hashes.txt from the (root)certificate
|
||||||
# Bundles in etc (etc/*.pem)
|
# Bundles in etc (etc/*.pem)
|
||||||
|
|
||||||
TEMPDIR="/tmp"
|
TEMPDIR=$(mktemp -d)
|
||||||
|
trap 'rm -rf "$TEMPDIR"' EXIT
|
||||||
|
|
||||||
# Check if we are in the right directory
|
# Check if we are in the right directory
|
||||||
if [[ ! -e etc ]]; then
|
if [[ ! -e etc ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user