From 9977c922fc8645488f62d7ac53747f066a323614 Mon Sep 17 00:00:00 2001 From: Kyle Harding Date: Thu, 16 Nov 2023 09:50:37 -0500 Subject: [PATCH] Avoid permission denied when writing to test files created by root Change-type: patch Signed-off-by: Kyle Harding --- test/healthcheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/healthcheck.sh b/test/healthcheck.sh index f15301a..78e4c41 100644 --- a/test/healthcheck.sh +++ b/test/healthcheck.sh @@ -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)"