diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-12-06 14:03:35 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-12-06 14:03:35 +0100 |
commit | e75e5879c0e8d232a2e8f045685beeb8c965aba4 (patch) | |
tree | 116954225b04f01e5d566d96900870f2bee4d0a8 /abicheck | |
parent | 2f17261da947e143d79d9c843a26eeb4b44ec385 (diff) | |
download | apt-e75e5879c0e8d232a2e8f045685beeb8c965aba4.tar.gz |
replace "which" with "command -v" for portability
which is a debian specific tool packaged in debianutils (essential)
while command is a shell builtin defined by POSIX.
Closes: 807144
Thanks: Mingye Wang for the suggestion.
Diffstat (limited to 'abicheck')
-rwxr-xr-x | abicheck/run_abi_test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/abicheck/run_abi_test b/abicheck/run_abi_test index 18c13dfcb..6e6152a63 100755 --- a/abicheck/run_abi_test +++ b/abicheck/run_abi_test @@ -8,7 +8,7 @@ if [ ! -d ../build ]; then exit 1 fi -if [ ! -x "$(which abi-compliance-checker 2>/dev/null )" ]; then +if command -v abi-compliance-checker 2>/dev/null >&2; then echo "Please install the 'abi-compliance-checker' package" exit 1 fi |