From: WebSTUMP Date: Thu, 12 Oct 2017 17:03:46 +0000 (+0100) Subject: probes: Fix "read message" for if the message is empty X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~webstump/git?p=modbot-ulm.git;a=commitdiff_plain;h=ced3fce5e33a4a687c6d6e6cebd4f6da33f41171 probes: Fix "read message" for if the message is empty --- 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