kata-manager: Fix '-o' syntax and logic error

Fix the syntax and logic error that is only displayed if the user runs
the script with `-o`. This option requests that "only" Kata Containers
is installed and stops containerd from being installed.

Fixes: #6822.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2023-05-12 16:38:37 +01:00
parent 42dce15b1f
commit 73913c8eb7

View File

@ -262,7 +262,7 @@ pre_checks()
command -v "${kata_shim_v2}" &>/dev/null \
&& die "Please remove existing $kata_project installation"
[skip_containerd = "false" ] && return 0
[ "$skip_containerd" = 'true' ] && return 0
local ret