This commit is contained in:
MacRimi
2025-02-25 17:44:17 +01:00
parent d420bb35f4
commit 92d6435dba
4 changed files with 39 additions and 40 deletions

View File

@@ -58,18 +58,9 @@ show_menu() {
index=$((selected_number - 1))
if [ $index -ge 0 ] && [ $index -lt ${#scripts[@]} ]; then
IFS='|' read -r name repository command <<< "${scripts[$index]}"
if whiptail --title "$(translate "Confirm Execution")" \
--yesno "$(translate "Are you sure you want to execute:") $name?" 10 60; then
msg_info2 "$(translate "Executing script:") $name"
eval "$command"
msg_ok "$(translate "Script completed.")"
msg_success "$(translate "Press Enter to return to the menu...")"
read -r
else
msg_info2 "$(translate "Script execution cancelled.")"
sleep 2
fi
eval "$command"
fi
else
exec bash <(curl -s "$REPO_URL/scripts/menus/main_menu.sh")
fi