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:
@@ -154,6 +154,13 @@ EOF
|
|||||||
xzcat block-107134.tar.xz | tar x -C "$DATADIR/regtest"
|
xzcat block-107134.tar.xz | tar x -C "$DATADIR/regtest"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if [ $# -lt 2 ]
|
||||||
|
then
|
||||||
|
echo "$0 : two arguments are required!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Precomputation
|
# Precomputation
|
||||||
case "$1" in
|
case "$1" in
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in New Issue
Block a user