You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: menu/main_menu.sh
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -57,12 +57,15 @@ do_the_update() {
57
57
msg_box "Since you have automated updates enabled with the reboot option set, we won't run update script a second time to the latest version automatically.
58
58
To upgrade to the latest version, please run: 'sudo bash $SCRIPTS/update.sh' from your CLI."
59
59
else
60
-
ifyesno_box_yes "We will now run the update script a second time to update to the latest major version ($NCVERSION). Do you want to continue?"
60
+
ifversion_gt "$NCVERSION""$CURRENTVERSION"
61
61
then
62
-
# Check if it's an unsupported major version (will exit if it is)
63
-
major_versions_unsupported
64
-
# Do the upgrade if it's not
65
-
bash "$SCRIPTS"/update.sh
62
+
if yesno_box_yes "We will now run the update script a second time to update to the latest major version ($NCVERSION). Do you want to continue?"
63
+
then
64
+
# Check if it's an unsupported major version (will exit if it is)
0 commit comments