test: stop using which (#709)

`which` is an external command which isn't required by POSIX.

Debian and other distributions (like Gentoo!) are looking
to drop it from their base set of packages.

Switch to `command -v` which is, however, POSIX. See https://lwn.net/Articles/874049/.
This commit is contained in:
Sam James 2024-06-19 10:36:29 +01:00 committed by GitHub
parent 1c5803950e
commit ef1e185e2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
PATH="$(pwd)/../src/flac:$PATH"
printf "Using FLAC binary : %s\n" "$(which flac)"
printf "Using FLAC binary : %s\n" "$(command -v flac)"
date="$(date "+%Y%m%dT%H%M%S")"
fname="comp${date}.flac"