From e0bd8e0a973e07a6b18f5c988a63d8588d91d63e Mon Sep 17 00:00:00 2001 From: Hyko Date: Tue, 12 May 2026 21:50:21 -0400 Subject: [PATCH] feat(lxs): reload script automatically after successful update --- lxs.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lxs.sh b/lxs.sh index 6db86cd..2ecdf18 100755 --- a/lxs.sh +++ b/lxs.sh @@ -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