bench_engines: always generate an html file
[nit.git] / benchmarks / bench_plot.sh
index e874308..08a13e6 100755 (executable)
@@ -103,7 +103,8 @@ if test -n "$html"; then
        echo gnuplot -e "set term png; set output \"$bn.png\"" "$1"
 
        echo >>"$html" "<img src=\"$bn.png\"/>"
-else
+fi
+if test -n "$DISPLAY"; then
        echo "# gnuplot -p $1"
        gnuplot -p "$1"
 fi