From 65431289a0aa7ee034c277ce64068e5a740ea93a Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Mon, 24 Aug 2026 19:00:54 -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 ff4dbb3..ed1934d 100755 --- a/tests/t0302-home-access.sh +++ b/tests/t0302-home-access.sh @@ -11,7 +11,7 @@ test_description='Ensure that git does not access $HOME' # strace needs ptrace, which a system can 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 2.12.1