mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
Fix the printing error when using bash
This commit is contained in:
parent
c67469d96b
commit
38ac7ef8d8
1 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,7 @@ logit () {
|
||||||
|
|
||||||
info () {
|
info () {
|
||||||
local infoCountCheck
|
local infoCountCheck
|
||||||
|
local OPTIND c
|
||||||
while getopts c args
|
while getopts c args
|
||||||
do
|
do
|
||||||
case $args in
|
case $args in
|
||||||
|
@ -37,6 +38,8 @@ info () {
|
||||||
|
|
||||||
pass () {
|
pass () {
|
||||||
local passScored
|
local passScored
|
||||||
|
local passCountCheck
|
||||||
|
local OPTIND s c
|
||||||
while getopts sc args
|
while getopts sc args
|
||||||
do
|
do
|
||||||
case $args in
|
case $args in
|
||||||
|
@ -59,6 +62,7 @@ pass () {
|
||||||
|
|
||||||
warn () {
|
warn () {
|
||||||
local warnScored
|
local warnScored
|
||||||
|
local OPTIND s
|
||||||
while getopts s args
|
while getopts s args
|
||||||
do
|
do
|
||||||
case $args in
|
case $args in
|
||||||
|
@ -77,6 +81,7 @@ warn () {
|
||||||
|
|
||||||
note () {
|
note () {
|
||||||
local noteCountCheck
|
local noteCountCheck
|
||||||
|
local OPTIND c
|
||||||
while getopts c args
|
while getopts c args
|
||||||
do
|
do
|
||||||
case $args in
|
case $args in
|
||||||
|
|
Loading…
Reference in a new issue