Wait for chmod completion
This commit is contained in:
20
electron.js
20
electron.js
@@ -524,11 +524,23 @@ ipcMain.on(Constants.IPC_Extract_Release, (event, data) => {
|
|||||||
.on('finish', () => {
|
.on('finish', () => {
|
||||||
stream.close();
|
stream.close();
|
||||||
if (os.platform() !== 'win32') {
|
if (os.platform() !== 'win32') {
|
||||||
helpers.executeAndWait("chmod +x \"" + path.join(destination, 'repertory') + "\"");
|
helpers
|
||||||
|
.executeAndWait("chmod +x \"" + path.join(destination, 'repertory') + "\"")
|
||||||
|
.then(() => {
|
||||||
|
standardIPCReply(event, Constants.IPC_Extract_Release_Complete, {
|
||||||
|
Source: data.Source,
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.catch(error => {
|
||||||
|
standardIPCReply(event, Constants.IPC_Extract_Release_Complete, {
|
||||||
|
Source: data.Source,
|
||||||
|
}, error);
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
standardIPCReply(event, Constants.IPC_Extract_Release_Complete, {
|
||||||
|
Source: data.Source,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
standardIPCReply(event, Constants.IPC_Extract_Release_Complete, {
|
|
||||||
Source: data.Source,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user