From: Simon Deziel Date: Thu, 28 Oct 2021 17:09:48 +0000 (-0400) Subject: Replace last occurence of 'which' with 'command -v' X-Git-Tag: lxc-5.0.0~57^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4024%2Fhead;p=thirdparty%2Flxc.git Replace last occurence of 'which' with 'command -v' The later is builtin and POSIX compliant. Signed-off-by: Simon Deziel --- diff --git a/hooks/nvidia b/hooks/nvidia index f5146b411..8247f1953 100755 --- a/hooks/nvidia +++ b/hooks/nvidia @@ -68,7 +68,7 @@ in_userns() { } get_ldconfig() { - which "ldconfig.real" || which "ldconfig" + command -v "ldconfig.real" || command -v "ldconfig" return $? }