From 7be058362831b709cbea68c63b566141c144792e Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 29 Aug 2021 18:43:25 +0300 Subject: [PATCH] scripts/coverage.sh: use POSIX `command` instead of `which` (#2637) Debian deprecated `which` in `debianutils` in favor of `command`. `which` outputs this to stderr now: /usr/bin/which: this version of `which' is deprecated; use `command -v' in scripts instead. --- scripts/coverage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/coverage.sh b/scripts/coverage.sh index 6bd7c92dd..676fb8b03 100755 --- a/scripts/coverage.sh +++ b/scripts/coverage.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu -if ! which grcov 2>/dev/null 1>&2; then +if ! command -v grcov >/dev/null; then echo >&2 '`grcov` not found. Check README at https://github.com/mozilla/grcov for setup instructions.' echo >&2 'Run `cargo install grcov` to build `grcov` from source.' exit 1