Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.