- Implemented a new param for launching client processes to wait for the process to close - Waiting for the bash script to finish before restarting the application
This commit is contained in:
@@ -34,7 +34,7 @@ export const checkForUpdates = async () => {
|
||||
|
||||
// Run the post-update script
|
||||
console.log('Running post-update script...');
|
||||
await launchProcess("bash", ['./post-update.sh']);
|
||||
await launchProcess("bash", ['./post-update.sh'], true);
|
||||
|
||||
// Restart the application to apply the updates
|
||||
console.log('Update completed successfully. Restarting the application...');
|
||||
|
||||
Reference in New Issue
Block a user