set flags after checking the command line

This commit is contained in:
slaren 2024-02-16 14:06:25 +01:00
parent 00a4ab627d
commit a148899966

View file

@ -1,13 +1,13 @@
#!/bin/bash #!/bin/bash
set -e
set -x
if [ $# -lt 2 ]; then if [ $# -lt 2 ]; then
echo "usage: ./scripts/compare-commits.sh <commit1> <commit2> [additional llama-bench arguments]" echo "usage: ./scripts/compare-commits.sh <commit1> <commit2> [additional llama-bench arguments]"
exit 1 exit 1
fi fi
set -e
set -x
bench_args="${@:3}" bench_args="${@:3}"
rm -f llama-bench.sqlite rm -f llama-bench.sqlite