From e13a469b0d3ccfbbdae68a72014751bd2d0a2be3 Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Tue, 17 Sep 2024 00:32:47 +0500 Subject: [PATCH] stay in current menu after action --- remote | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/remote b/remote index dd12813..63e144e 100755 --- a/remote +++ b/remote @@ -82,11 +82,11 @@ fan_menu() { read -p "Enter your choice: " choice case $choice in - 1) tap 30 200 ;; - 2) tap 640 200 ;; + 1) tap 30 200 ; fan_menu ;; + 2) tap 640 200 ; fan_menu ;; 3) echo wip ;; 4) show_main_menu ;; - *) echo "Invalid choice. Press Enter to continue..."; read; device_menu "$device" ;; + *) echo "Invalid choice. Try Again..."; sleep 0.5; fan_menu ;; esac }