增加手动停止标识

This commit is contained in:
whyour
2024-12-31 00:17:30 +08:00
parent 678e3e2dc6
commit 43d6ac2071
5 changed files with 22 additions and 4 deletions
+7 -1
View File
@@ -56,7 +56,9 @@ function run() {
for (const key in newEnvObject) {
process.env[key] = newEnvObject[key];
}
console.log(output);
if (output) {
console.log(output);
}
if (task_before) {
console.log('执行前置命令结束\n');
}
@@ -89,6 +91,10 @@ try {
return;
}
process.on('SIGTERM', (code) => {
process.exit(15);
});
run();
const { sendNotify } = require('./notify.js');