Remove redundant banner menu and fix uninstall cancellation

This commit is contained in:
2026-09-04 17:23:40 +04:00
parent 3517a54b3c
commit 9a226ebe15
+3 -5
View File
@@ -285,10 +285,9 @@ uninstall_kaskad() {
echo ""
list_active_rules_no_pause
read -p "Продолжить удаление? Введите DELETE: " confirm
if [[ "$confirm" != "DELETE" ]]; then
if [[ "${confirm%:}" != "DELETE" ]]; then
echo "Отменено."
read -p "Нажмите Enter..."
return
return 1
fi
while read -r line; do
@@ -355,7 +354,6 @@ show_menu() {
echo -e "5) Посмотреть активные правила"
echo -e "6) ${RED}Удалить одно правило${NC}"
echo -e "7) ${RED}Сбросить ВСЕ настройки${NC}"
echo -e "8) ${YELLOW}Показать заставку BERLOGA${NC}"
echo -e "9) ${MAGENTA}📚 ИНСТРУКЦИЯ (Как настроить)${NC}"
echo -e "10) ${RED}Полностью удалить Kaskad${NC}"
echo -e "0) Выход"
@@ -370,7 +368,6 @@ show_menu() {
5) list_active_rules ;;
6) delete_single_rule ;;
7) flush_rules ;;
8) show_berloga ;;
9) show_instructions ;;
10) uninstall_kaskad ;;
0) exit 0 ;;
@@ -384,6 +381,7 @@ check_root
if [[ "${1:-}" == "--uninstall" ]]; then
uninstall_kaskad
exit $?
fi
prepare_system