summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-09-29 21:04:13 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-09-29 21:04:50 -0700
commita707230beb696f8e62b74ed4a6536fe8848faa6b (patch)
tree641bb418b35e22454679b197041e155512970a0b /t
parent8017df194f75fe3136a304c422f2f2a765b3e42a (diff)
downloadp5-Git-Annex-a707230beb696f8e62b74ed4a6536fe8848faa6b.tar.gz
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 <spwhitton@spwhitton.name>
Diffstat (limited to 't')
-rw-r--r--t/lib/t/Util.pm2
1 files changed, 1 insertions, 1 deletions
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 !$?;
}