From 6be438b974939075d2f0fee68fe057a0e48539ed Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Wed, 5 Mar 2025 11:03:55 +0000 Subject: [PATCH] fix: read from /dev/tty fix for unix pipes (#1) `read` from `/dev/tty` to present the user with an interactive shell when passed with a pipe. Reviewed-on: https://codeberg.org/vegvisir/install/pulls/1 --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 9010fc7..281160a 100755 --- a/install.sh +++ b/install.sh @@ -58,7 +58,7 @@ configure_vegvisir() { # A configuration file already exists if [ -f "vegvisir/.env.ini" ] ; then echo "A Vegvisir configuration file already exists at: ${cwd}/vegvisir/.env.ini" - read -p "Do you want to overwrite this file? (y/n): " choice + read -p "Do you want to overwrite this file? (y/n): " choice