Use more reliable grep method
This commit is contained in:
parent
0767984729
commit
7b3f0e5f0d
|
@ -19,7 +19,7 @@ echo
|
||||||
|
|
||||||
if [[ ${#active_ttys} -gt 1 ]]; then
|
if [[ ${#active_ttys} -gt 1 ]]; then
|
||||||
if [[ "${active_ttys[@]}" =~ "ttyS" ]]; 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 "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... "
|
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
|
if ! read -t 15; then
|
||||||
|
|
Loading…
Reference in New Issue