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:
Jonathan "Duke" Leto
2017-10-16 08:39:59 -07:00
parent af549fe6ed
commit 147fffb7ec

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