From c141b2f1f2be0bebe2c36f6c6d1309e24f8dd57f Mon Sep 17 00:00:00 2001 From: Rezart Qelibari Date: Sun, 23 Jan 2022 18:35:48 +0100 Subject: [PATCH] Clean up even in case of SIGINT and SIGTERM ZSHs `trap EXIT` does not handle interrupt or termination signals. --- bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index b4280e9..089cbf3 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -18,7 +18,7 @@ function isDebug() { function main() { local tmpdir="`mktemp -d -t 'macos-system'`" - isDebug || trap "rm -fr -- '${tmpdir}'" EXIT + isDebug || trap "rm -fr -- '${tmpdir}'" INT TERM EXIT pushd -q "${tmpdir}" cloneMacOSSystemRepo cloneZSHLibRepo