containers / podman-security-bench

Apache License 2.0
38 stars 10 forks source link

Syntax error: redirection unexpected #16

Open dmenneck opened 1 month ago

dmenneck commented 1 month ago

When running

sh podman-security-bench.sh

i get the error message

# --------------------------------------------------------------------------------------------
# Podman Security Bench v1.0.0
#
# Based off of Docker Bench for security
#   Docker, Inc. (c) 2015-2021
#
# Checks for dozens of common best-practices around deploying Podman containers in production.
# Based on the CIS Docker Benchmark 1.3.1.
# --------------------------------------------------------------------------------------------

Path to allow files set to: /var/home/containeruser/podman-security-bench/default-lists

Initializing 2024-06-21T11:52:09+02:00

Section A - Check results
podman-security-bench.sh: 93: ./tests/4_container_images.sh: Syntax error: redirection unexpected
nalind commented 1 month ago

That looks like a bit of syntax that bash supports that other shells might not. What shell is 'sh'?