forked from sheetjs/sheetjs
SheetJS
dc2d391fbc
- all utilities are now wrapped in XLSX object - codepage handling (h/t @xch89820) - formula tag attributes (h/t @shaunthomas999) - hyperlink support (h/t @sysarchitect, fixes #55) - coverage test spinner (to prevent travis timeouts)
15 lines
268 B
Bash
Executable File
15 lines
268 B
Bash
Executable File
#!/bin/bash
|
|
# spin.sh -- show a spinner (for coverage test)
|
|
# Copyright (C) 2014 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
|