Clean up even in case of SIGINT and SIGTERM

ZSHs `trap EXIT` does not handle interrupt or termination signals.
This commit is contained in:
Rezart Qelibari
2022-01-23 18:35:48 +01:00
parent b70d93d73a
commit c141b2f1f2

View File

@@ -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