Browse Source

统一下载执行程序的前缀~

hl 9 months ago
parent
commit
4f99901ab3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/robot.js

+ 1 - 1
src/robot.js

@@ -379,7 +379,7 @@ async function closeAppAll() {
         // }
 
 
-        execSync(`sudo kill $(pgrep -f "^.*\/4l_as_")`, (error, stdout, stderr) => {
+        exec(`sudo kill $(pgrep -f "^.*\/4l_as_")`, (error, stdout, stderr) => {
             if (error) {
                 logger.error(`全杀-进程${pid} 杀死失败: ${error}`);
             }