From a707230beb696f8e62b74ed4a6536fe8848faa6b Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 29 Sep 2021 21:04:13 -0700 Subject: replace use of which(1) with call to 'command' shell builtin This should be more portable, as 'command -v' is specified by POSIX. Signed-off-by: Sean Whitton --- t/lib/t/Util.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/lib/t/Util.pm') diff --git a/t/lib/t/Util.pm b/t/lib/t/Util.pm index dea6a42..df324ce 100644 --- a/t/lib/t/Util.pm +++ b/t/lib/t/Util.pm @@ -42,7 +42,7 @@ sub device_id_issues { } sub git_annex_available { - `which git-annex`; + `sh -c "command -v git-annex"`; return !$?; } -- cgit v1.2.3