Read answer from /dev/tty (#123)

This commit is contained in:
NobleKangaroo 2020-11-02 05:39:27 -05:00 committed by GitHub
parent 5916fa75ad
commit d59f3ee787
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 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 "If you do not overwrite this now you need to manually adjust it later"
info "Do you want to proceed with that? [N/y] " info "Do you want to proceed with that? [N/y] "
read answer read answer < /dev/tty
if [[ "$answer" =~ "y" ]] || [[ "$answer" =~ "Y" ]]; then if [[ "$answer" =~ "y" ]] || [[ "$answer" =~ "Y" ]]; then
info "Replacing /etc/network/interfaces" info "Replacing /etc/network/interfaces"