From 505f808d425e078e3fcc434391158e0fdc90949e Mon Sep 17 00:00:00 2001 From: Rezart Qelibari Date: Sun, 23 Jan 2022 19:05:22 +0100 Subject: [PATCH] Add return to trap command Without `return` the SIGINT is ignored (the trap arg gets executed properly though). --- bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index 089cbf3..80ebb77 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}'" INT TERM EXIT + isDebug || trap "rm -fr -- '${tmpdir}'; return" INT TERM EXIT pushd -q "${tmpdir}" cloneMacOSSystemRepo cloneZSHLibRepo