containers / podman-security-bench

Apache License 2.0
39 stars 10 forks source link

Code Error in 4_container_images.sh #13

Open maddin58 opened 1 year ago

maddin58 commented 1 year ago

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)"

fluidum commented 1 year ago

Ubuntu 22.04.2 podman version 4.5.1 (manually installed) skopeo version 1.4.1 (from repo)

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.