From 9af47557f16df4dd6ce9764618daabc05b736e5f Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:57 -0400 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