Skip to content

Commit

Permalink
Merge pull request #88 from vkareh/SDA-2788/fix-version-check
Browse files Browse the repository at this point in the history
verify-oc: Ensure no output on error
  • Loading branch information
vkareh authored Aug 27, 2020
2 parents 2fecd66 + 6a67ba9 commit ff29583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/verify/oc/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func run(_ *cobra.Command, _ []string) {
ocDownloadURL := "https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest"

output, err := exec.Command("oc", "version").Output()
if err != nil {
if output == nil && err != nil {
reporter.Errorf("OpenShift command-line tool is not installed.\n"+
"Go to %s to download the OpenShift client and add it to your PATH.", ocDownloadURL)
return
Expand Down

0 comments on commit ff29583

Please sign in to comment.