]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc/checkconfig: replace `type` by `command`
authorSimon Deziel <simon.deziel@canonical.com>
Fri, 6 Oct 2023 04:03:35 +0000 (00:03 -0400)
committerSimon Deziel <simon.deziel@canonical.com>
Fri, 6 Oct 2023 05:43:17 +0000 (01:43 -0400)
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
src/lxc/cmd/lxc-checkconfig.in

index b007be664a620a723e9dc3b9394f62ecf5b585c9..ee421fde02038bab26c49aca578f1ba38ffa41d3 100755 (executable)
@@ -72,7 +72,7 @@ is_probed() {
     fi
 }
 
-if type lxc-start >/dev/null 2>&1; then
+if command -v lxc-start >/dev/null; then
     echo "LXC version $(lxc-start --version)"
 fi