]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Replace last occurence of 'which' with 'command -v'
authorSimon Deziel <simon.deziel@canonical.com>
Thu, 28 Oct 2021 17:09:48 +0000 (13:09 -0400)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 29 Oct 2021 08:07:09 +0000 (10:07 +0200)
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 $?
 }