From df82b8cddd27f848e71395d02348712a658c88b4 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Fri, 29 Jan 2021 03:28:54 +0100 Subject: Ensure fd12 is writeable --- lib/remote/report.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/remote/report.sh b/lib/remote/report.sh index e6766a4..434c6aa 100644 --- a/lib/remote/report.sh +++ b/lib/remote/report.sh @@ -1,7 +1,10 @@ function simple_report { local generator="$1" local filter="${2:-cat}" + + # Create fd12 (sending empty output), execute checks (writting extra info on fd12), print main info and store extra info into variable, wait for termination of async checks. { + chmod +w /dev/fd/12 eval "$generator 12>/dev/fd/12 | $filter" report=$(cat<&12) } 12<