From ed04e24fc6096f276c17d8db3427a4b9483ca433 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 24 Mar 2024 19:02:49 -0400 Subject: [PATCH] #10 Added console output for post-update script --- client/modules/selfUpdater.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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.');