From 003f576f7a1ae8f36e85b74ad1a3c336488e43e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Hallenbarter?= Date: Mon, 26 Jan 2026 09:12:23 +0000 Subject: [PATCH] modifyed fflush --- install.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/install.sh b/install.sh index c434215..cb2e17c 100755 --- a/install.sh +++ b/install.sh @@ -28,11 +28,8 @@ ask_app() { local app while true; do - # Print prompt and flush stdout - printf "%s (default: %s): " "$label" "$default" - fflush - - read -r app + # -p prints prompt, -r prevents backslash escapes + read -rp "$label (default: $default): " app app="${app:-$default}" # check if command exists @@ -46,11 +43,6 @@ ask_app() { done } -# Helper function to flush stdout -fflush() { - : -} - # ---------------------------- # Installer