From 3634e71264aac1ab1d625bafcd31da1fedeffc8b Mon Sep 17 00:00:00 2001 From: Rohit T P Date: Sat, 20 Apr 2024 13:18:01 +0000 Subject: [PATCH] chore: proceed only after enter is pressed --- docker-compose/setup-script/noco.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose/setup-script/noco.sh b/docker-compose/setup-script/noco.sh index 6685c0efe4..36c13833de 100755 --- a/docker-compose/setup-script/noco.sh +++ b/docker-compose/setup-script/noco.sh @@ -580,7 +580,7 @@ show_logs_sub_menu() { echo "A. All" echo "0. Back to Logs Menu" echo "Enter replica number: " - read -n 1 replica_choice + read replica_choice if [[ "\$replica_choice" =~ ^[0-9]+\$ ]] && [ "\$replica_choice" -gt 0 ] && [ "\$replica_choice" -le "\$2" ]; then container_id=\$($DOCKER_COMMAND compose ps | grep "\$1-\$replica_choice" | cut -d " " -f 1) @@ -627,7 +627,7 @@ show_logs() { echo "A. All" echo "0. Back to main menu" echo "Enter your choice: " - read -n 1 log_choice + read log_choice echo if [[ "\$log_choice" =~ ^[0-9]+\$ ]] && [ "\$log_choice" -gt 0 ] && [ "\$log_choice" -lt "\$count" ]; then