Add return to trap command

Without `return` the SIGINT is ignored (the trap arg gets executed
properly though).
This commit is contained in:
Rezart Qelibari
2022-01-23 19:05:22 +01:00
parent c141b2f1f2
commit 505f808d42

View File

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