Skip to content

Commit

Permalink
fix: try fix returning error when update
Browse files Browse the repository at this point in the history
  • Loading branch information
CKylinMC committed Jul 17, 2023
1 parent f0886b7 commit b596e68
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/actions/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ export async function update(download = false) {
move /y "${selfpath}" "${selfpath}.old"
move /y "${filepath}" "${selfpath}"
del /f /Q "${selfpath}.old"
del /f /Q "${temp}"
echo Done.
exit /b
del /f /Q "${temp}" && echo Done. && exit /b
`.split("\n").map(line=>line.trimStart()).join("\n"));
fs.writeFileSync(scriptBootPath, `
@cmd /c ${scriptPath.indexOf(" ")!=-1?`"${scriptPath}"`:`${scriptPath}`}
Expand Down

0 comments on commit b596e68

Please sign in to comment.