From df4471c26c64ca00ab4d6f8a1b435a5c22677475 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:00 -0400 Subject: [PATCH] Fix bug with active TTYs --- templates/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/install.sh b/templates/install.sh index 46fab03..6c0ba72 100755 --- a/templates/install.sh +++ b/templates/install.sh @@ -17,7 +17,7 @@ this_tty=$( tty | sed -e "s:/dev/::" ) echo "This TTY: ${this_tty}" echo -if [[ ${#active_ttys} -gt 1 ]]; then +if [[ ${#active_ttys[@]} -gt 1 ]]; then if [[ "${active_ttys[@]}" =~ "ttyS" ]]; then if grep -q -E -o "tty[0-9]+" <<<"${this_tty}"; then echo "Found more than one TTY and at least one serial TTY!"