Skip to content

Commit a9b15cc

Browse files
committed
fix(script): 正常退出时不执行 cleanup
1 parent 06c4554 commit a9b15cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/start-linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ cleanup() {
9494
exit 0
9595
}
9696

97-
trap cleanup SIGINT SIGTERM EXIT
97+
trap cleanup SIGINT SIGTERM
9898

9999
confirm() {
100100
read -n 1 -s -r -p "$1 (Y/n) " key

0 commit comments

Comments
 (0)