From e43358a0d2371930a388e2c8eea7145ffe048567 Mon Sep 17 00:00:00 2001 From: Kota Kanbe Date: Wed, 14 Sep 2016 20:19:32 +0900 Subject: [PATCH] Fix release version detection on FreeBSD --- scan/freebsd.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scan/freebsd.go b/scan/freebsd.go index d3d10c3c08..28215bf385 100644 --- a/scan/freebsd.go +++ b/scan/freebsd.go @@ -43,6 +43,10 @@ func newBsd(c config.ServerInfo) *bsd { //https://github.com/mizzy/specinfra/blob/master/lib/specinfra/helper/detect_os/freebsd.rb func detectFreebsd(c config.ServerInfo) (itsMe bool, bsd osTypeInterface) { bsd = newBsd(c) + + // Prevent from adding `set -o pipefail` option + c.Distro = config.Distro{Family: "FreeBSD"} + if r := sshExec(c, "uname", noSudo); r.isSuccess() { if strings.Contains(r.Stdout, "FreeBSD") == true { if b := sshExec(c, "uname -r", noSudo); b.isSuccess() {