Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions internal/install/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ var Command = &cobra.Command{
return err
}

// For targeted installs, return the error to ensure non-zero exit code
if len(extractedRecipeNames) > 0 {
return err
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


if i.shouldInstallCore() {
fallbackErrorMsg := fmt.Sprintf("\nWe encountered an issue during the installation: %s.", err)
fallbackHelpMsg := "If this problem persists, visit the documentation and support page for additional help here at https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/get-started/requirements-infrastructure-agent/"
Expand Down
Loading