js-adler32/misc/spin.sh
SheetJS 8215562b11 version bump 0.3.0
- AMD support (h/t @lmk123 for initially contributing to js-crc32)
- added missing bitshift (h/t @florentbr for initially contributing to js-crc32)
- flow annotaations
- updated ci node versions
2016-01-16 00:36:58 -05:00

15 lines
276 B
Bash
Executable File

#!/bin/bash
# spin.sh -- show a spinner (for coverage test)
# Copyright (C) 2014-present 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