Replace last occurence of 'which' with 'command -v'

The later is builtin and POSIX compliant.

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
This commit is contained in:
Simon Deziel 2021-10-28 13:09:48 -04:00 committed by Christian Brauner
parent 1ec5939b4a
commit cf931928f1
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -68,7 +68,7 @@ in_userns() {
}
get_ldconfig() {
which "ldconfig.real" || which "ldconfig"
command -v "ldconfig.real" || command -v "ldconfig"
return $?
}