From 5057f2821c46e5126a218053e66b5f52b9363815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Sainl=C3=A9ger?= Date: Tue, 26 Nov 2024 09:22:24 +0100 Subject: [PATCH] imp: correction of add-ons to uninstall manual verification --- prepare_db.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/prepare_db.sh b/prepare_db.sh index 01f3efb..79de4f5 100755 --- a/prepare_db.sh +++ b/prepare_db.sh @@ -40,11 +40,11 @@ Do you accept to uninstall all these add-ons? (Y/N/R)" echo "Y - Yes, let's go on with the upgrade." echo "N - No, stop the upgrade" echo "R - I've edited the list, please Re-display it" - read -p "Your choice: " choice - case $choice in - [Yy]* ) return 0;; - [Nn]* ) return 1;; - [Rr]* ) display_combined_list; continue;; + read -n 1 -p "Your choice: " choice + case "$choice" in + [Yy] ) return 0;; + [Nn] ) return 1;; + [Rr] ) display_combined_list; continue;; * ) echo "Please answer by Y, N or R.";; esac done