Skip to content

Commit

Permalink
Fix bug where performance-measurements.sh fails hards when given no args
Browse files Browse the repository at this point in the history
Better than "$1: unbound variable", we ran into this when testing this
script in the Hush repo, so we are pushing this fix upstream.
  • Loading branch information
leto committed Oct 16, 2017
1 parent af549fe commit 147fffb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions qa/zcash/performance-measurements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ EOF
xzcat block-107134.tar.xz | tar x -C "$DATADIR/regtest"
}


if [ $# -lt 2 ]
then
echo "$0 : two arguments are required!"
exit 1
fi

# Precomputation
case "$1" in
*)
Expand Down

0 comments on commit 147fffb

Please sign in to comment.