From d59f3ee78757f4b6ffe64daaa9eebe8aec703042 Mon Sep 17 00:00:00 2001 From: NobleKangaroo <34781835+NobleKangaroo@users.noreply.github.com> Date: Mon, 2 Nov 2020 05:39:27 -0500 Subject: [PATCH] Read answer from /dev/tty (#123) --- installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer.sh b/installer.sh index 2dcfdea..b159da6 100644 --- a/installer.sh +++ b/installer.sh @@ -106,7 +106,7 @@ warn "Changes are needed to the /etc/network/interfaces file" info "If you have modified the network on the host manualy, those can now be overwritten" info "If you do not overwrite this now you need to manually adjust it later" info "Do you want to proceed with that? [N/y] " -read answer +read answer < /dev/tty if [[ "$answer" =~ "y" ]] || [[ "$answer" =~ "Y" ]]; then info "Replacing /etc/network/interfaces"