diff options
author | Ayush Agarwal <ayush@fastmail.in> | 2021-09-15 19:17:27 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-09-23 23:25:28 +0200 |
commit | a80a3189458a86f29f61d980b4ad977594199864 (patch) | |
tree | b2473c0fb7b5498c2a32355b9de369391aa1b192 /src/platform/freebsd.sh | |
parent | 85bb62f47ac2f518bfdb36c5dfedf5938219a9b7 (diff) | |
download | pass-a80a3189458a86f29f61d980b4ad977594199864.tar.zst |
Replace 'which' with POSIX equivalent 'command -v'
The 'which' command is an external command that must be called each and
every time pass is used. 'which' is also not mentioned in the README as
one of the dependencies that might be needed to run pass.
Instead of 'which', we can use the POSIX compatible and shell built-in
'command -v'. It saves pass from making an external call and is,
arguably, more reliable than using 'which' as mentioned in the following
link.
Diffstat (limited to 'src/platform/freebsd.sh')
0 files changed, 0 insertions, 0 deletions