Fix bad grep

This commit is contained in:
Joshua Boniface 2023-09-01 15:41:57 -04:00
parent fafe47b79b
commit 8b45bbabae
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ if [[ ${#active_ttys} -gt 1 ]]; then
else else
echo "Found more than one TTY!" echo "Found more than one TTY!"
echo -n "Waiting for other TTYs to time out... " echo -n "Waiting for other TTYs to time out... "
sleep $(( 16 + $( grep -o '[0-9]+' <<<"${this_tty}" ) )) sleep $(( 16 + $( grep -E -o '[0-9]+' <<<"${this_tty}" ) ))
echo "done." echo "done."
fi fi
else else