1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

chmod mode is string

This commit is contained in:
Kyle Spearrin
2018-05-22 19:41:17 -04:00
parent b12783910a
commit 07f927b2a9

View File

@@ -65,7 +65,7 @@ export class UpdateCommand {
const currentDir = this.inPkg ? path.dirname(process.execPath) : __dirname; const currentDir = this.inPkg ? path.dirname(process.execPath) : __dirname;
zip.extractAllTo(currentDir, true); zip.extractAllTo(currentDir, true);
if (process.platform !== 'win32') { if (process.platform !== 'win32') {
fs.chmodSync(path.join(currentDir, 'bw'), 764); fs.chmodSync(path.join(currentDir, 'bw'), '764');
} }
res.title = 'Updated self to ' + tagName + '.'; res.title = 'Updated self to ' + tagName + '.';
if (responseJson.body != null && responseJson.body !== '') { if (responseJson.body != null && responseJson.body !== '') {