Fix bug with active TTYs
This commit is contained in:
parent
443678dee0
commit
df4471c26c
|
@ -17,7 +17,7 @@ this_tty=$( tty | sed -e "s:/dev/::" )
|
||||||
echo "This TTY: ${this_tty}"
|
echo "This TTY: ${this_tty}"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [[ ${#active_ttys} -gt 1 ]]; then
|
if [[ ${#active_ttys[@]} -gt 1 ]]; then
|
||||||
if [[ "${active_ttys[@]}" =~ "ttyS" ]]; then
|
if [[ "${active_ttys[@]}" =~ "ttyS" ]]; then
|
||||||
if grep -q -E -o "tty[0-9]+" <<<"${this_tty}"; 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 "Found more than one TTY and at least one serial TTY!"
|
||||||
|
|
Loading…
Reference in New Issue