fix docker buildx check

In testing, docker reports an exit code of zero if --help
is passed, regardless of the subcommand
This commit is contained in:
Todd Neal 2023-02-10 14:26:15 -06:00
parent 70dde8d746
commit 0c99212e78

View File

@ -729,7 +729,7 @@ function kube::util::ensure-cfssl {
# Check if we have "docker buildx" commands available
#
function kube::util::ensure-docker-buildx {
if docker buildx --help >/dev/null 2>&1; then
if docker buildx >/dev/null 2>&1; then
return 0
else
echo "ERROR: docker buildx not available. Docker 19.03 or higher is required with experimental features enabled"