From e559c146b7710bdab59730bf09f41df83bfa5ab6 Mon Sep 17 00:00:00 2001 From: Olli Graf Date: Sat, 4 Jul 2026 11:16:30 +0200 Subject: [PATCH] run-cpu-stress.sh fails when no logfilename is passed. --- bin/run-cpu-stress.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/run-cpu-stress.sh b/bin/run-cpu-stress.sh index d947afd..156874c 100755 --- a/bin/run-cpu-stress.sh +++ b/bin/run-cpu-stress.sh @@ -10,6 +10,11 @@ else export THERMAL_ZONE=/sys/class/thermal/thermal_zone0/temp fi +if [ -z "${1}" ]; then + echo "usage run-cpu-stress.sh " + exit 1 +fi + measure_temp.sh > ${1} & TPID=$! fio ${PISTRESS_HOME}/fio/fio_cpu