Created
April 26, 2017 13:43
-
-
Save erickeller/b7062ab7eaa5145bea46409f5367e63c to your computer and use it in GitHub Desktop.
wait for 30 sec continue directry if any keyboard key is pressed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `seq 30`; do sleep 1; echo -n .; read -r -s -t 0.5; RETVAL=$?; [ $RETVAL -eq 0 ] && break ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment