Skip to content

Commit

Permalink
aptitude changelog defaults to using more, which is not interactive a…
Browse files Browse the repository at this point in the history
…nd breaks docker scans. Set PAGER=cat before running to default to cat.
  • Loading branch information
jsulinski committed Feb 9, 2017
1 parent 1730caf commit b5c2718
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 b5c2718

Please sign in to comment.