From 7b3f0e5f0d1715d7f59be1b3f4de2824595945c7 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 12 Dec 2021 20:18:47 -0500 Subject: [PATCH] Use more reliable grep method --- templates/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/install.sh b/templates/install.sh index 1d5efd0..e9b2eb0 100755 --- a/templates/install.sh +++ b/templates/install.sh @@ -19,7 +19,7 @@ echo if [[ ${#active_ttys} -gt 1 ]]; then if [[ "${active_ttys[@]}" =~ "ttyS" ]]; then - if [[ "${this_tty}" =~ "tty[0-9]+" ]]; then + if grep -q -E -o "tty[0-9]+" <<<"${this_tty}"; then echo "Found more than one TTY and at least one serial TTY!" echo -n "If you wish to run the installer on this graphical TTY instead of the serial TTY, press enter within 15 seconds... " if ! read -t 15; then