js-codepage/misc/spin.sh
SheetJS 8bc8da47ba version bump 1.4.0
- avoid modifying buffer length (breaks in node 4.x 5.x)
  h/t @khankuan @zetxx @mikkeloscar
- updated dist and tests (h/t @bryannaegele)
- corrected code pages 5022*
2016-01-15 22:27:02 -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