podman-security-bench icon indicating copy to clipboard operation
podman-security-bench copied to clipboard

Code Error in 4_container_images.sh

Open maddin58 opened this issue 3 years ago • 1 comments

https://github.com/containers/podman-security-bench/blob/8dbf9170b13733ebd4d4da7c9daa3fe546e8b3ad/tests/4_container_images.sh#L93

mapfile -t packages < "$(podman exec "$c" $listCommand 2>/dev/null)"

maddin58 avatar Oct 24 '22 08:10 maddin58

Ubuntu 22.04.2 podman version 4.5.1 (manually installed)

I just got same error when tried first run script with sh like readme.md describes.

sudo sh podman-security-bench.sh podman-security-bench.sh: 93: ./tests/4_container_images.sh: Syntax error: redirection unexpected

As a solution for me sudo bash podman-security-bench.sh ran successfully.

fluidum avatar Jul 29 '23 20:07 fluidum

This can be closed due to #17

ember91 avatar Sep 30 '24 08:09 ember91