Skip to content

Commit

Permalink
Merge pull request #76 from aquasecurity/Fix-bug-#75
Browse files Browse the repository at this point in the history
Fix Bug
  • Loading branch information
yoavrotems authored Jun 18, 2020
2 parents be889b0 + 2e6f179 commit e728b37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import (
"os"
"os/exec"
"path/filepath"

"strings"

"github.com/aquasecurity/bench-common/check"
"github.com/aquasecurity/bench-common/util"
"github.com/golang/glog"
Expand Down Expand Up @@ -93,7 +94,7 @@ func getControls(path string) (*check.Controls, error) {
func getDockerVersion() (string, error) {
cmd := exec.Command("docker", "version", "-f", "{{.Server.Version}}")
out, err := cmd.Output()
return string(out), err
return strings.TrimSpace(string(out)), err
}

func getDefinitionFilePath(version string) (string, error) {
Expand Down

0 comments on commit e728b37

Please sign in to comment.