Auto merge of #2665 - leto:perf_fix, r=str4d

Fix bug where performance-measurements.sh fails hards when given no args

Better than "$1: unbound variable", we ran into this when testing this script in the Hush repo, so we are pushing this fix upstream.
This commit is contained in:
Homu 2017-10-23 18:37:05 -07:00
commit 6b58fd2c99
1 changed files with 7 additions and 0 deletions

View File

@ -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
*)