mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
Adding double quotes to
This commit is contained in:
parent
aa24306b04
commit
4194b1e65c
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ else
|
||||||
for c in $containers; do
|
for c in $containers; do
|
||||||
port=`docker port $c | awk '{print $1}' | cut -d '/' -f1`
|
port=`docker port $c | awk '{print $1}' | cut -d '/' -f1`
|
||||||
|
|
||||||
if [ ! -z "$port" ] && [ $port -lt 1025 ]; then
|
if [ ! -z "$port" ] && [ "$port" -lt 1025 ]; then
|
||||||
# If it's the first container, fail the test
|
# If it's the first container, fail the test
|
||||||
if [ $fail -eq 0 ]; then
|
if [ $fail -eq 0 ]; then
|
||||||
warn "$check_5_8"
|
warn "$check_5_8"
|
||||||
|
|
Loading…
Reference in a new issue