From ee40c18b2193b7d899ccdf9d53dd74c14a891900 Mon Sep 17 00:00:00 2001 From: Diederik de Haas Date: Wed, 10 Nov 2021 22:11:03 +0100 Subject: [PATCH] Use 'command -v' instead of deprecated 'which' --- debian/llvm-X.Y-runtime.postinst.in | 2 +- debian/llvm-X.Y-runtime.prerm.in | 2 +- debian/rules | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/llvm-X.Y-runtime.postinst.in b/debian/llvm-X.Y-runtime.postinst.in index 22326b1b..a974e949 100644 --- a/debian/llvm-X.Y-runtime.postinst.in +++ b/debian/llvm-X.Y-runtime.postinst.in @@ -3,7 +3,7 @@ set -e if test "$1" = "configure"; then - if which update-binfmts >/dev/null; then + if command -v update-binfmts >/dev/null; then update-binfmts --import llvm-@LLVM_VERSION@-runtime.binfmt || true fi fi diff --git a/debian/llvm-X.Y-runtime.prerm.in b/debian/llvm-X.Y-runtime.prerm.in index 4b7d8eb7..35fc5ca8 100644 --- a/debian/llvm-X.Y-runtime.prerm.in +++ b/debian/llvm-X.Y-runtime.prerm.in @@ -3,7 +3,7 @@ set -e if test "$1" = "remove"; then - if which update-binfmts >/dev/null; then + if command -v update-binfmts >/dev/null; then update-binfmts --package llvm-@LLVM_VERSION@-runtime \ --remove llvm-@LLVM_VERSION@-runtime.binfmt /usr/bin/lli-@LLVM_VERSION@ || true if test -f /var/lib/binfmts/llvm-@LLVM_VERSION@.binfmt; then diff --git a/debian/rules b/debian/rules index 61195d17..43209da5 100755 --- a/debian/rules +++ b/debian/rules @@ -195,7 +195,7 @@ else control_vars = '-Vdep:devlibs=libstdc++6-$(GCC_VERSION)-dev' endif -ifeq ($(shell which llvm-spirv),) +ifeq ($(shell command -v llvm-spirv),) LLVM_SPIRV_INSTALLED = no else LLVM_SPIRV_INSTALLED = yes