From 18f09b6e0824bb0d5ab6f07fc017e98eab917817 Mon Sep 17 00:00:00 2001 From: Christian Spielberger <c.spielberger@commend.com> Date: Wed, 27 Sep 2023 14:39:03 +0200 Subject: [PATCH] tools: jbuf plots - add check if jbuf.json exists --- tools/jbuf/generate_plot.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/jbuf/generate_plot.sh b/tools/jbuf/generate_plot.sh index e8e29bfbc1..07c95b8516 100755 --- a/tools/jbuf/generate_plot.sh +++ b/tools/jbuf/generate_plot.sh @@ -10,6 +10,11 @@ if ! which gnuplot; then exit 1 fi +if [ ! -f jbuf.json ]; then + echo "jbuf.json does not exist" + exit 1 +fi + function gen_datfile() { ph=$1 filename=$2