Skip to content

Instantly share code, notes, and snippets.

@ob-ivan
Last active August 19, 2021 13:42
Show Gist options
  • Save ob-ivan/d128cabff05264032605421ca0271656 to your computer and use it in GitHub Desktop.
Save ob-ivan/d128cabff05264032605421ca0271656 to your computer and use it in GitHub Desktop.
#!/bin/sh -eu
SECONDS=0
while [ "${SECONDS}" -lt 10 ]
do
echo -n '.'
sleep 1
done
echo ''
@ob-ivan
Copy link
Author

ob-ivan commented Aug 19, 2021

Doesn't seem to work in dash (goes into infinite loop), which is the default implementation of /bin/sh on Ubuntu 20.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment