frac/misc/spin.sh
SheetJS 2f54d2f5c1 version bump 1.0.1: cleanup and python
- demo page (gh-pages branch)
- updated year
- flow annotations in separate frac.flow.js file
- introduced build infrastructure from js-xlsx
- python version
2015-04-21 21:14:03 -07:00

15 lines
273 B
Bash
Executable File

#!/bin/bash
# spin.sh -- show a spinner (for coverage test)
# Copyright (C) 2014-2015 SheetJS
wpid=$1
delay=1
str="|/-\\"
while [ $(ps -a|awk '$1=='$wpid' {print $1}') ]; do
t=${str#?}
printf " [%c]" "$str"
str=$t${str%"$t"}
sleep $delay
printf "\b\b\b\b"
done