Skip to content

Sed error when specifying checks to include and exclude when runnning on a Mac #503

@gavinmporter

Description

@gavinmporter

I'm using docker-bench-security on a Mac to check images.

Using parameters that specify both checks to include and exclude results in a sed error on BSD systems. For example,

$ sh docker-bench-security.sh -c container_images -e check_4_5
sed: 1: "/container_images() {/, ...": extra characters at the end of p command

sed_bsd_p_fix.txt

This can be fixed by modifying the sed command to add an explicit semi-colon after the p, see attached patch.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions