From 477e12d5cf36d6a79b9bce761ecfbc7b58e6c19c Mon Sep 17 00:00:00 2001 From: kota kanbe Date: Wed, 16 Aug 2017 11:54:19 +0900 Subject: [PATCH] Fix FreeBSD detection --- scan/freebsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan/freebsd.go b/scan/freebsd.go index bdcac08c..0bb6016a 100644 --- a/scan/freebsd.go +++ b/scan/freebsd.go @@ -54,7 +54,7 @@ func detectFreebsd(c config.ServerInfo) (itsMe bool, bsd osTypeInterface) { c.Distro = config.Distro{Family: config.FreeBSD} if r := exec(c, "uname", noSudo); r.isSuccess() { - if strings.Contains(r.Stdout, config.FreeBSD) == true { + if strings.Contains(strings.ToLower(r.Stdout), config.FreeBSD) == true { if b := exec(c, "freebsd-version", noSudo); b.isSuccess() { rel := strings.TrimSpace(b.Stdout) bsd.setDistro(config.FreeBSD, rel)