Skip to content

Commit

Permalink
Avoid permission denied when writing to test files created by root
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Kyle Harding <[email protected]>
  • Loading branch information
klutchell committed Nov 16, 2023
1 parent b84a544 commit 9977c92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ echo "Testing stderr" >&2
echo "Testing stdout" >/dev/stdout
echo "Testing stderr" >/dev/stderr

echo "Testing stdout" 1> >(tee /tmp/stdout)
echo "Testing stderr" 2> >(tee /tmp/stderr)
echo "Testing stdout" 1> >(tee "$HOME"/stdout)
echo "Testing stderr" 2> >(tee "$HOME"/stderr)

if [ -n "${HOSTNAME}" ]; then
test "${HOSTNAME}" = "$(hostname)"
Expand Down

0 comments on commit 9977c92

Please sign in to comment.