fix: 为ctrl+C设置trap,防止shell进程意外退出 (#1162)

* 为sigint进行trap设置

Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
This commit is contained in:
火花 2025-05-12 21:55:47 +08:00 committed by GitHub
parent 0bc74e16e0
commit 545bc2c346
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,2 +1,3 @@
#!/bin/sh
export PATH=/bin:/usr/bin:/usr/local/bin
export PATH=/bin:/usr/bin:/usr/local/bin
trap ' ' INT