feat(lxs): reload script automatically after successful update

This commit is contained in:
2026-05-12 21:50:21 -04:00
parent db6b349bc4
commit e0bd8e0a97
+7 -1
View File
@@ -396,7 +396,13 @@ main_menu() {
case $choice in
1) download_and_run "apps/index.sh" ;;
2) download_and_run "tools/index.sh" ;;
u|U) cmd_update ;;
u|U)
if cmd_update && [ -x "${LXS_INSTALL_DIR}/lxs.sh" ]; then
echo ""
read -r -p "Press Enter to reload with the new version..."
exec bash "${LXS_INSTALL_DIR}/lxs.sh"
fi
;;
0)
clear
show_lxs_logo