Skip to content

Commit 0c3ae93

Browse files
authored
Stop cat from failing on missing permissions in ACI environment dump (#7655)
1 parent eca222f commit 0c3ae93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ jobs:
200200
set -ex
201201
# Dump environment variables, extract Fabric_NodeIPOrFQDN
202202
# and save it to a file for reconfiguration test using THIM.
203-
cat /proc/*/environ | tr '\000' '\n' | sort -u | grep Fabric_NodeIPOrFQDN > /Fabric_NodeIPOrFQDN
203+
{ cat /proc/*/environ 2>/dev/null || true; } | tr '\000' '\n' | sort -u | grep Fabric_NodeIPOrFQDN > /Fabric_NodeIPOrFQDN
204204
echo "::group::Disk usage"
205205
df -kh
206206
echo "::endgroup::"
@@ -281,7 +281,7 @@ jobs:
281281
set -ex
282282
# Dump environment variables, extract Fabric_NodeIPOrFQDN
283283
# and save it to a file for reconfiguration test using THIM.
284-
cat /proc/*/environ | tr '\000' '\n' | sort -u | grep Fabric_NodeIPOrFQDN > /Fabric_NodeIPOrFQDN
284+
{ cat /proc/*/environ 2>/dev/null || true; } | tr '\000' '\n' | sort -u | grep Fabric_NodeIPOrFQDN > /Fabric_NodeIPOrFQDN
285285
echo "::group::Disk usage"
286286
df -kh
287287
echo "::endgroup::"

0 commit comments

Comments
 (0)