]> git.ipfire.org Git - thirdparty/lxc.git/commit
Replace 'which' with 'command -v'
authorDiederik de Haas <didi.debian@cknow.org>
Thu, 28 Oct 2021 15:27:08 +0000 (17:27 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 29 Oct 2021 08:07:03 +0000 (10:07 +0200)
commit1a8895855e9f3d7afded64fca74f4d9fc7974984
tree2528573aff437daa7779b6b168ca4735e3591d4d
parent9219277cc6627654adf03628b84d15eb0a545138
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