fix pullblocks.sh for macOS

This commit is contained in:
Larry Ruane 2020-11-03 17:25:42 -07:00 committed by Larry Ruane
parent 1712bde1bc
commit 05c51935ad
1 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,9 @@
# Usage: ./pullblocks.sh 500000 500100 > blocks.txt
test $# -ne 2 && { echo usage: $0 start end;exit 1;}
for i in $(seq $1 $2); do
zcash-cli getblock $i 0
let i=$1
while test $i -le $2
do
zcash-cli getblock $i 0
let i++
done