From 10514785b2690b443610afef558de6f7d4f72dd9 Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Mon, 12 Jan 2009 10:18:14 -0500 Subject: skip empty files --- plot_ecrts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plot_ecrts b/plot_ecrts index 3bcd004..2b33575 100755 --- a/plot_ecrts +++ b/plot_ecrts @@ -38,6 +38,11 @@ function plot_file { STRIPPED=`get_tmp_file` # remove comments for Gnuplot egrep -v '^#' $FILE > $STRIPPED + if [ ! -s $STRIPPED ] + then + echo "Skipping $FILE since there wasn't any data to be found. " + return + fi # decode file name PARAMS= for KV in `echo $NAME | sed -e 's/_/ /g'` -- cgit v1.2.2