From c9a9aa4c4b92d9baeb27bc99bedeccebf9d34953 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 21:16:07 +0000 Subject: [PATCH 1/2] Initial plan From 025a022aae85c44328aa9bf905df714b6520b301 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 21:22:07 +0000 Subject: [PATCH 2/2] Fix: reconnect stdin to /dev/tty when running via bash <(curl ...) Co-authored-by: jrock2004 <655716+jrock2004@users.noreply.github.com> --- scripts/curl-install.sh | 9 ++++++++- scripts/install.sh | 8 ++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/scripts/curl-install.sh b/scripts/curl-install.sh index 4c654767..a9d390ca 100755 --- a/scripts/curl-install.sh +++ b/scripts/curl-install.sh @@ -21,4 +21,11 @@ fi cd "$HOME"/.dotfiles || exit -exec ./install.sh +# Reconnect stdin to the terminal so interactive prompts work correctly. +# When running via `bash <(curl ...)`, stdin may be the process substitution +# pipe rather than the terminal, causing read/select to receive EOF immediately. +if [ -t 0 ]; then + exec ./install.sh +else + exec ./install.sh < /dev/tty +fi diff --git a/scripts/install.sh b/scripts/install.sh index c6591a2d..b2daff24 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -5,6 +5,14 @@ # Exit on error, undefined variables, and pipe failures set -euo pipefail +# Reconnect stdin to the terminal if it is not already a TTY. +# This is needed when the script is invoked via `bash <(curl ...)` where +# stdin may be the process substitution pipe instead of the terminal, +# causing interactive read/select calls to receive EOF immediately. +if [ ! -t 0 ] && [ -c /dev/tty ]; then + exec < /dev/tty +fi + ########################################### # GLOBAL VARIABLES ###########################################