mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-08-08 22:50:46 +08:00
Add exit trap
This commit is contained in:
@@ -71,4 +71,6 @@ function main() {
|
|||||||
wait
|
wait
|
||||||
}
|
}
|
||||||
|
|
||||||
|
trap "trap - EXIT && kill 0 && wait && echo exit..." EXIT
|
||||||
|
|
||||||
main
|
main
|
||||||
|
Reference in New Issue
Block a user