mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
benchmarks/driver.sh: also quote path to benchmarks
I had only tested with a space in the path to the fish binary, but not with a space in the path to the repository. Closes #8559
This commit is contained in:
parent
70f2899fcd
commit
5211735965
1 changed files with 4 additions and 2 deletions
|
@ -29,10 +29,12 @@ for benchmark in "$BENCHMARKS_DIR"/*; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v hyperfine >/dev/null 2>&1; then
|
if command -v hyperfine >/dev/null 2>&1; then
|
||||||
|
cmd1="$(quote "${FISH_PATH}") $(quote "$benchmark") > /dev/null"
|
||||||
if [ -n "$FISH2_PATH" ]; then
|
if [ -n "$FISH2_PATH" ]; then
|
||||||
hyperfine "$(quote "${FISH_PATH}") $benchmark > /dev/null" "$(quote "${FISH2_PATH}") $benchmark > /dev/null"
|
cmd2="$(quote "${FISH2_PATH}") $(quote "$benchmark") > /dev/null"
|
||||||
|
hyperfine "$cmd1" "$cmd2"
|
||||||
else
|
else
|
||||||
hyperfine "$(quote "${FISH_PATH}") $benchmark > /dev/null"
|
hyperfine "$cmd1"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue