1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-01-28 20:56:03 +00:00

test: Replace uses of which with command -v

The `which` command isn't guaranteed to be available, it is just
extremely common; `command -v` is the standard way to do find an
executable program. See https://lwn.net/Articles/874049/ for more
details.

This patch replaces the uses of `which` with `command -v`, which only
appears in a couple of tests.
This commit is contained in:
Alberto Bertogli
2021-10-29 11:11:21 +01:00
parent 643f7576f0
commit 14e270b7f5
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ init
check_hostaliases
for binary in dkimsign dkimverify dkimkeygen; do
if ! which $binary > /dev/null; then
if ! command -v $binary > /dev/null; then
skip "$binary binary not found"
exit 0
fi