mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Use POSIX sh in the benchmark driver
There are reasons to use bash, `hash` is not one of them, as `command -v` is perfectly capable and in POSIX. [ci skip]
This commit is contained in:
parent
efe6fb3c3b
commit
9a3fb3e265
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "Usage: driver.sh /path/to/fish"
|
||||
|
@ -10,7 +10,7 @@ BENCHMARKS_DIR=$(dirname "$0")/benchmarks
|
|||
for benchmark in "$BENCHMARKS_DIR"/*; do
|
||||
echo $(basename "$benchmark")
|
||||
${FISH_PATH} --print-rusage-self $benchmark > /dev/null
|
||||
if hash hyperfine 2>/dev/null; then
|
||||
if command -v hyperfine >/dev/null 2>&1; then
|
||||
hyperfine "${FISH_PATH} $benchmark > /dev/null"
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue