Skip to content

Commit

Permalink
fix pointless sudo in debian.go #29
Browse files Browse the repository at this point in the history
  • Loading branch information
kotakanbe committed May 19, 2016
1 parent 97a8e6e commit 359dab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scan/debian.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 359dab3

Please sign in to comment.