diff --git a/src/commands/update.command.ts b/src/commands/update.command.ts index 0eb6b0d2912..ab8ebb0b7c9 100644 --- a/src/commands/update.command.ts +++ b/src/commands/update.command.ts @@ -65,7 +65,7 @@ export class UpdateCommand { const currentDir = this.inPkg ? path.dirname(process.execPath) : __dirname; zip.extractAllTo(currentDir, true); if (process.platform !== 'win32') { - fs.chmodSync(path.join(currentDir, 'bw'), 764); + fs.chmodSync(path.join(currentDir, 'bw'), '764'); } res.title = 'Updated self to ' + tagName + '.'; if (responseJson.body != null && responseJson.body !== '') {