From 4d4b2f02aa3b9496d51b2705e988ba7e064eb47a Mon Sep 17 00:00:00 2001 From: vijay Date: Thu, 8 May 2025 02:06:35 +0000 Subject: [PATCH] Update manage_iptables --- manage_iptables | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/manage_iptables b/manage_iptables index f076be2..11b93f5 100644 --- a/manage_iptables +++ b/manage_iptables @@ -82,7 +82,12 @@ remove_from_whitelist() { while true; do show_menu read -p "Select an option [1-6]: " option - option=$(echo "$option" | tr -d '[:space:]') # Trim whitespace + + # Check if input is empty + if [[ -z "$option" ]]; then + echo "No option selected. Please try again." + continue + fi case $option in 1)