remove unnecessary bash-ism
[fio.git] / fio_generate_plots
index 9b1e1ca59ecf7df69d38aa2769e9b84c25b5c1c5..ff479a7d41f7f543b102bd5522db9eec2c8171f3 100755 (executable)
@@ -1,8 +1,8 @@
-#!/bin/bash
+#! /bin/sh
 
 # Use gnuplot to generate plots from fio run with -l and/or -w
 
-if [ "$1"x == "x" ]; then
+if [ "$1"x = "x" ]; then
        echo Need title as arg
        exit 1
 fi
@@ -30,7 +30,7 @@ done
 
 if [ "$PLOT_LINE"x != "x" ]; then
        echo Making bw logs
-       echo "set title 'Bandwidth - $TITLE'; set xlabel 'time (msec)'; set ylabel 'KiB/sec'; set terminal png; set output '$TITLE-bw.png'; plot " $PLOT_LINE | $GNUPLOT -
+       echo "set title 'Bandwidth - $TITLE'; set xlabel 'time (msec)'; set ylabel 'KB/sec'; set terminal png; set output '$TITLE-bw.png'; plot " $PLOT_LINE | $GNUPLOT -
 fi
 
 PLOT_LINE=""