internal/pkg/exec/ssm_plugin_validate_binary_windows.go (8 lines of code) (raw):
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package exec provides an interface to execute certain commands.
package exec
import (
"bytes"
)
// ValidateBinary validates if the ssm plugin exists.
func (s SSMPluginCommand) ValidateBinary() error {
// Hinder output on the screen.
var b bytes.Buffer
return s.runner.Run(ssmPluginBinaryName, []string{}, Stdout(&b))
}