Skip to content

Commit

Permalink
Merge pull request #324 from federacy/aptitude_changelog_more_to_cat
Browse files Browse the repository at this point in the history
aptitude changelog defaults to using more, which is not interactive a…
  • Loading branch information
kotakanbe authored Feb 13, 2017
2 parents 1e8f24d + b5c2718 commit 0066048
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 @@ -537,7 +537,7 @@ func (o *debian) scanPackageCveIDs(pack models.PackageInfo) ([]string, error) {
case "ubuntu":
cmd = fmt.Sprintf(`apt-get changelog %s | grep '\(urgency\|CVE\)'`, pack.Name)
case "debian":
cmd = fmt.Sprintf(`aptitude changelog %s | grep '\(urgency\|CVE\)'`, pack.Name)
cmd = fmt.Sprintf(`env PAGER=cat aptitude changelog %s | grep '\(urgency\|CVE\)'`, pack.Name)
}
cmd = util.PrependProxyEnv(cmd)

Expand Down

0 comments on commit 0066048

Please sign in to comment.