]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Replace last occurence of 'which' with 'command -v' 4024/head
authorSimon Deziel <simon.deziel@canonical.com>
Thu, 28 Oct 2021 17:09:48 +0000 (13:09 -0400)
committerSimon Deziel <simon.deziel@canonical.com>
Thu, 28 Oct 2021 21:10:05 +0000 (17:10 -0400)
The later is builtin and POSIX compliant.

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
hooks/nvidia

index f5146b411732bbfff672eb7a9e30d43aba996aee..8247f1953de6014d57aaec5006c1fb0298e9e776 100755 (executable)
@@ -68,7 +68,7 @@ in_userns() {
 }
 
 get_ldconfig() {
-    which "ldconfig.real" || which "ldconfig"
+    command -v "ldconfig.real" || command -v "ldconfig"
     return $?
 }