]> git.ipfire.org Git - thirdparty/lxc.git/commit
Replace 'which' with 'command -v' 4019/head
authorDiederik de Haas <didi.debian@cknow.org>
Thu, 28 Oct 2021 15:27:08 +0000 (17:27 +0200)
committerDiederik de Haas <didi.debian@cknow.org>
Thu, 28 Oct 2021 15:27:08 +0000 (17:27 +0200)
commit7a7671655aaa8d66730c218513680736b1437a10
tree36f223a175312430791f4df552d9fc3c49bf1791
parent8dff29c6c7885222ed11217a2b9c0a50ae7cea64
Replace 'which' with 'command -v'

The 'which' command is deprecated on Debian Sid as it is not POSIX
compliant and it's behavior is therefor not consistent, so replace it
with 'command -v' which is POSIX compliant.
See https://stackoverflow.com/a/677212 for details.

Also replaced a use of backticks (`) as that is deprecated as well.
See https://github.com/koalaman/shellcheck/wiki/SC2006 for details.

Signed-off-by: Diederik de Haas <didi.debian@cknow.org>
config/init/common/lxc-net.in
hooks/dhclient.in
hooks/nvidia
src/lxc/cmd/lxc-checkconfig.in
templates/lxc-busybox.in
templates/lxc-oci.in