From 6b9dac473def1e6ed0daedb9eb35664fbbfffb8c Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Mon, 24 Aug 2026 16:51:55 -1000 Subject: Prefer POSIX forms throughout the test scripts --- tests/t0302-home-access.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/t0302-home-access.sh') diff --git a/tests/t0302-home-access.sh b/tests/t0302-home-access.sh index 7078596..89aa00f 100755 --- a/tests/t0302-home-access.sh +++ b/tests/t0302-home-access.sh @@ -12,7 +12,7 @@ test_description='Ensure that git does not access $HOME' # strace needs ptrace, which containers and hardened kernels refuse even # where the binary is installed, so a working run is checked as well as a # present binary. -test -n "$(which strace 2>/dev/null)" || { +command -v strace >/dev/null 2>&1 || { skip_all='Skipping access validation tests: strace not found' test_done exit -- cgit v2.8.0