ci, t, tools: use `command` and `type` instead of `which`
authorVille Skyttä <ville.skytta@upcloud.com>
Thu, 4 Nov 2021 07:30:28 +0000 (09:30 +0200)
committerVille Skyttä <ville.skytta@upcloud.com>
Sun, 20 Feb 2022 18:47:26 +0000 (20:47 +0200)
commite28b6d0a881080ff08434dcc1eab00c1954c182d
treea6cf396a6162d4dca9bc9edf2ccd879b112cb4d7
parent933651ec130ce4d27a5c249d649d20afeb2bdf38
ci, t, tools: use `command` and `type` instead of `which`

`which` is not POSIX, and cannot be assumed to installed everywhere.

`command -v` is available in POSIX and its predecessors at least since
1994: https://pubs.opengroup.org/onlinepubs/7908799/
It can be used as a replacement for `which` in a number of occurrences
in fio.

For bash scripts, `type -P` is available as a builtin replacement for
`which` and its $PATH search semantics.

Signed-off-by: Ville Skyttä <ville.skytta@upcloud.com>
ci/travis-install-pmdk.sh
t/one-core-peak.sh
tools/fio_generate_plots