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