From e647cf15d2baaef2c43cafe86cf4635884115cfb Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sun, 7 Apr 2019 00:08:24 -0500 Subject: [PATCH] Fix chmod --- electron.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/electron.js b/electron.js index 44bee2c..81f221c 100644 --- a/electron.js +++ b/electron.js @@ -517,15 +517,15 @@ ipcMain.on(Constants.IPC_Extract_Release, (event, data) => { } catch (e) { } stream.close(); - if (os.platform() !== 'win32') { - helpers.executeAndWait("chmod +x \"" + path.join(destination, 'repertory') + "\""); - } standardIPCReply(event, Constants.IPC_Extract_Release_Complete, { Source: data.Source, }, error); }) .on('finish', () => { stream.close(); + if (os.platform() !== 'win32') { + helpers.executeAndWait("chmod +x \"" + path.join(destination, 'repertory') + "\""); + } standardIPCReply(event, Constants.IPC_Extract_Release_Complete, { Source: data.Source, });