Make test for gnuplot work with empty strings.
[fio.git] / tools / fio_generate_plots
index f65a326c87f52e6647a90988ade23ea092850da0..51c0643aaca3fb8b8d85a74926d46767daf46403 100755 (executable)
@@ -22,7 +22,7 @@ if [ -z "$1" ]; then
 fi
 
 GNUPLOT=$(which gnuplot)
-if [ ! -x $GNUPLOT ]
+if [ ! -x "$GNUPLOT" ]
 then
        echo You need gnuplot installed to generate graphs
        exit 1