From 359dab3380eb97cd311becc0ebf1fd7d2bdbe7c9 Mon Sep 17 00:00:00 2001 From: kota kanbe Date: Thu, 19 May 2016 17:20:09 +0900 Subject: [PATCH] fix pointless sudo in debian.go #29 --- scan/debian.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan/debian.go b/scan/debian.go index ff644408..da7d73e9 100644 --- a/scan/debian.go +++ b/scan/debian.go @@ -226,7 +226,7 @@ func (o *debian) parseScanedPackagesLine(line string) (name, version string, err func (o *debian) checkRequiredPackagesInstalled() error { if o.Family == "debian" { - if r := o.ssh("test -f /usr/bin/aptitude", sudo); !r.isSuccess() { + if r := o.ssh("test -f /usr/bin/aptitude", noSudo); !r.isSuccess() { msg := "aptitude is not installed" o.log.Errorf(msg) return fmt.Errorf(msg)