From fd49ff696848a03fd75ae9988ec59a8b3bb63c34 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Sun, 2 Nov 2025 17:10:27 +0200 Subject: [PATCH] fix: ask_confirmation tty redirection (#330) --- _tools/shared.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tools/shared.sh b/_tools/shared.sh index 50cd2cd..fb24056 100755 --- a/_tools/shared.sh +++ b/_tools/shared.sh @@ -153,7 +153,7 @@ prompt_confirmation() { # Use timeout command to limit read duration # shellcheck disable=SC2016 - if response=$(timeout "$timeout_seconds" sh -c 'read -r r && echo "$r"' 2>/dev/null); then + if response=$(timeout "$timeout_seconds" sh -c 'read -r r /dev/null); then : # read succeeded within timeout else printf '\n'