Skip to content

Commit 77ecf2b

Browse files
Merge pull request #61 from Akrog/cleaner-edpm-sos-logs
Cleaner logs on EDPM SOS reports
2 parents 9e6f255 + 4eed93e commit 77ecf2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

collection-scripts/gather_edpm_sos

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ gather_edpm_sos () {
8282

8383
echo "Retrieving SOS Report for ${node}"
8484
mkdir -p "${SOS_PATH_NODES}/sosreport-$node"
85-
SSH sudo "cat ${TMPDIR}/*.tar.xz" | tee "${SOS_PATH_NODES}/sosreport-$node.tar.xz"
85+
# Redirect tar contents to file and stderr to stding
86+
{ SSH sudo "cat ${TMPDIR}/*.tar.xz" 1> "${SOS_PATH_NODES}/sosreport-$node.tar.xz"; } 2>&1
8687

8788
# shellcheck disable=SC2181
8889
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)