@samitouri / QOSami-HFS / commits / c1c893f1

fix: update not working if starting with a renamed binary

Massimo Melina committed Jul 19, 2023 at 15:11 UTC c1c893f1d775213c8019a844f149a663e644f4dd
1 file changed +1 -1
src/update.ts
+1 -1
@@ -88,7 +88,7 @@ export async function update(tag?: string) {
88
89 const bin = process.execPath
90 const binPath = dirname(bin)
91 - const binFile = basename(bin)
91 + const binFile = 'hfs' + (IS_WINDOWS ? '.exe' : '') // currently running bin could have been renamed
92 const newBinFile = 'new-' + binFile
93 pluginsWatcher.pause()
94 try {