From ebd6fdffe46e4781884855e0fcc22c056531a8f3 Mon Sep 17 00:00:00 2001 From: NobleKangaroo Date: Tue, 20 Oct 2020 01:02:37 -0400 Subject: [PATCH] Read answer from /dev/tty --- installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer.sh b/installer.sh index 58dd631..def9ac1 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"