Fix bug with active TTYs

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:00 -04:00
parent 443678dee0
commit df4471c26c
1 changed files with 1 additions and 1 deletions

View File

@ -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!"