Add exit trap

This commit is contained in:
Shiming Zhang
2022-02-09 11:39:00 +08:00
parent c7c5450501
commit fd77087098

View File

@@ -71,4 +71,6 @@ function main() {
wait
}
trap "trap - EXIT && kill 0 && wait && echo exit..." EXIT
main