ci, t, tools: use `command` and `type` instead of `which`
[fio.git] / tools / fio_generate_plots
index e4558788150d2cadfa9706a24a16cb75c5994246..468cf27a6c2ae6dd693972947fd24d00f8933424 100755 (executable)
@@ -21,7 +21,7 @@ if [ -z "$1" ]; then
        exit 1
 fi
 
-GNUPLOT=$(which gnuplot)
+GNUPLOT=$(command -v gnuplot)
 if [ ! -x "$GNUPLOT" ]
 then
        echo You need gnuplot installed to generate graphs