docker-bench-security
docker-bench-security copied to clipboard
Sed error when specifying checks to include and exclude when runnning on a Mac
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
This can be fixed by modifying the sed command to add an explicit semi-colon after the p, see attached patch.
Hi @gavinmporter and thanks for opening this issue. Can you create an PR with that patch?