feat(lxs): reload script automatically after successful update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user