Clean up even in case of SIGINT and SIGTERM
ZSHs `trap EXIT` does not handle interrupt or termination signals.
This commit is contained in:
@@ -18,7 +18,7 @@ function isDebug() {
|
|||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
local tmpdir="`mktemp -d -t 'macos-system'`"
|
local tmpdir="`mktemp -d -t 'macos-system'`"
|
||||||
isDebug || trap "rm -fr -- '${tmpdir}'" EXIT
|
isDebug || trap "rm -fr -- '${tmpdir}'" INT TERM EXIT
|
||||||
pushd -q "${tmpdir}"
|
pushd -q "${tmpdir}"
|
||||||
cloneMacOSSystemRepo
|
cloneMacOSSystemRepo
|
||||||
cloneZSHLibRepo
|
cloneZSHLibRepo
|
||||||
|
|||||||
Reference in New Issue
Block a user