Skip to content

Commit 54240cd

Browse files
Code Improvement
Modified code to wait for the call to the "/usr/sbin/webs_update.sh" to return instead of executing it in the background.
1 parent 9b39434 commit 54240cd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

MerlinAU.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Original Creation Date: 2023-Oct-01 by @ExtremeFiretop.
66
# Official Co-Author: @Martinski W. - Date: 2023-Nov-01
7-
# Last Modified: 2025-Jan-11
7+
# Last Modified: 2025-Jan-12
88
###################################################################
99
set -u
1010

@@ -6994,7 +6994,7 @@ _Toggle_FW_UpdateCheckSetting_()
69946994
if "$runfwUpdateCheck"
69956995
then
69966996
printf "\nChecking for new F/W Updates... Please wait.\n"
6997-
sh $FW_UpdateCheckScript 2>&1
6997+
sh "$FW_UpdateCheckScript" 2>&1
69986998
fi
69996999
_WaitForEnterKey_ "$mainMenuReturnPromptStr"
70007000
}
@@ -8883,7 +8883,7 @@ _EnableFWAutoUpdateChecks_()
88838883
}
88848884

88858885
##----------------------------------------##
8886-
## Modified by Martinski W. [2025-Jan-11] ##
8886+
## Modified by Martinski W. [2025-Jan-12] ##
88878887
##----------------------------------------##
88888888
_ConfirmCronJobForFWAutoUpdates_()
88898889
{
@@ -8992,7 +8992,8 @@ _ConfirmCronJobForFWAutoUpdates_()
89928992
##------------------------------------------------------------##
89938993
if "$runfwUpdateCheck" && [ -x "$FW_UpdateCheckScript" ]
89948994
then
8995-
sh "$FW_UpdateCheckScript" 2>&1 &
8995+
sh "$FW_UpdateCheckScript" 2>&1
8996+
sleep 1
89968997
fi
89978998
}
89988999

0 commit comments

Comments
 (0)