Merge pull request #811 from eli-schwartz/portability

build: do not require the nonstandard and unpredictable 'which' utility
This commit is contained in:
罗泽轩 2019-12-13 10:01:41 +08:00 committed by GitHub
commit 69e96cba95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,6 @@ err() {
exit 1
}
if ! test "$(which column)"; then
if ! command -v column >/dev/null 2>&1; then
err "Need to install dependency 'column' before installation"
fi