From 07f927b2a925884d7b3756378596822a1e9a3726 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 22 May 2018 19:41:17 -0400 Subject: [PATCH] chmod mode is string --- src/commands/update.command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/update.command.ts b/src/commands/update.command.ts index 0eb6b0d291..ab8ebb0b7c 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 !== '') {