chiark / gitweb /
probes: Fix "read message" for if the message is empty
authorWebSTUMP <webstump@chiark.greenend.org.uk>
Thu, 12 Oct 2017 17:03:46 +0000 (18:03 +0100)
committerWebSTUMP <webstump@chiark.greenend.org.uk>
Thu, 12 Oct 2017 17:03:46 +0000 (18:03 +0100)
probes/modrelays-probe

index 4ce164856cdaee895cab95243735835a2c7beaea..22f00a718413f96eef809b89a6a0ef35981cb6b5 100755 (executable)
@@ -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