Skip to content

Instantly share code, notes, and snippets.

@erickeller
Created April 26, 2017 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erickeller/b7062ab7eaa5145bea46409f5367e63c to your computer and use it in GitHub Desktop.
Save erickeller/b7062ab7eaa5145bea46409f5367e63c to your computer and use it in GitHub Desktop.
wait for 30 sec continue directry if any keyboard key is pressed
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