Skip to content

Instantly share code, notes, and snippets.

@saml
Created November 20, 2020 15:29
Show Gist options
  • Save saml/72607c6d5f59765bc9093d04117d8afd to your computer and use it in GitHub Desktop.
Save saml/72607c6d5f59765bc9093d04117d8afd to your computer and use it in GitHub Desktop.
#!/bin/bash -xe
progressbar() {
secs="${1:-10}"
while true
do
printf .
sleep "$secs"
done
}
progressbar & progressbar_pid="$!"
false
kill "$progressbar_pid"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment