js-cfb/misc/spin.sh
SheetJS 1a428c8f5b version bump 0.10.3: ignore bad FAT
- sector checked before reading (h/t @e12009)
  See https://github.com/SheetJS/js-xlsx/issues/569
- flow type checking
2017-02-23 21:11:45 -08: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