diff --git a/client/modules/selfUpdater.mjs b/client/modules/selfUpdater.mjs index 6769c76..0d13089 100644 --- a/client/modules/selfUpdater.mjs +++ b/client/modules/selfUpdater.mjs @@ -32,13 +32,14 @@ export const checkForUpdates = async () => { // Pull the latest changes from the remote repository await git.pull(); - console.log('Update completed successfully. Restarting the application...'); - // Run the post-update script + console.log('Running post-update script...'); await launchProcess("bash", ['./post-update.sh']); // Restart the application to apply the updates + console.log('Update completed successfully. Restarting the application...'); restartApplication(); + return true } else { console.log('The application is up to date.');