diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-09-29 21:04:13 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-09-29 21:04:50 -0700 |
commit | a707230beb696f8e62b74ed4a6536fe8848faa6b (patch) | |
tree | 641bb418b35e22454679b197041e155512970a0b | |
parent | 8017df194f75fe3136a304c422f2f2a765b3e42a (diff) | |
download | p5-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>
-rw-r--r-- | Changes | 2 | ||||
-rw-r--r-- | t/lib/t/Util.pm | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,8 @@ Revision history for Git::Annex {{$NEXT}} + - Test suite: use 'command' shell builtin, rather than which(1), to + determine whether git-annex is available on PATH. 0.007 2021-02-28 13:20:42-07:00 America/Phoenix - Rename annex-review-unused to git-annex-reviewunused now that git-annex 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 !$?; } |