소스 검색

advancing auto-updater

psy 2 년 전
부모
커밋
937c355d6a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/index.js

+ 1 - 1
src/index.js

@@ -1022,7 +1022,7 @@ router
     const util = require('node:util');
     const exec = util.promisify(require('node:child_process').exec);
     async function updateTool() {
-      const { stdout, stderr } = await exec('git pull && npm install .');
+      const { stdout, stderr } = await exec('git reset --hard && git pull && npm install .');
       console.log("updating SNH-Oasis");
       console.log(stdout);
       console.log(stderr);