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