chmod mode is string

This commit is contained in:
Kyle Spearrin 2018-05-22 19:41:17 -04:00
parent b12783910a
commit 07f927b2a9
1 changed files with 1 additions and 1 deletions

View File

@ -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 !== '') {