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
parent 09a4a38d6e
commit af0ab1854c

View File

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