We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e6f255 + 4eed93e commit 77ecf2bCopy full SHA for 77ecf2b
collection-scripts/gather_edpm_sos
@@ -82,7 +82,8 @@ gather_edpm_sos () {
82
83
echo "Retrieving SOS Report for ${node}"
84
mkdir -p "${SOS_PATH_NODES}/sosreport-$node"
85
- SSH sudo "cat ${TMPDIR}/*.tar.xz" | tee "${SOS_PATH_NODES}/sosreport-$node.tar.xz"
+ # 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
87
88
# shellcheck disable=SC2181
89
if [ $? -ne 0 ]; then
0 commit comments