From ced3fce5e33a4a687c6d6e6cebd4f6da33f41171 Mon Sep 17 00:00:00 2001 From: WebSTUMP Date: Thu, 12 Oct 2017 18:03:46 +0100 Subject: [PATCH] probes: Fix "read message" for if the message is empty --- probes/modrelays-probe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probes/modrelays-probe b/probes/modrelays-probe index 4ce1648..22f00a7 100755 --- a/probes/modrelays-probe +++ b/probes/modrelays-probe @@ -231,7 +231,7 @@ maybe-report () { if ! [ -e "$attempt/$outcome" ]; then return; fi found_to_report=true - read <"$attempt/$outcome" message + message=$(cat "$attempt/$outcome") local reported if [ -e "$attempt/reported" ]; then -- 2.30.2