mirror of
				https://github.com/docker/docker-bench-security.git
				synced 2025-11-04 02:58:59 +00:00 
			
		
		
		
	Fix -e option totalChecks and currentScore always 0
Signed-off-by: Cheng-Li Jerry Ma <chengli.ma@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								37ccf4dbcf
							
						
					
				
			
			
				commit
				
					
						304094cbb2
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -126,7 +126,7 @@ main () {
 | 
			
		|||
    cis
 | 
			
		||||
  elif [ -z "$check" ] && [ "$checkexclude" ]; then
 | 
			
		||||
    checkexcluded="$(echo ",$checkexclude" | sed -e 's/^/\^/g' -e 's/,/\$|/g' -e 's/$/\$/g')"
 | 
			
		||||
    grep 'check_[0-9]' functions_lib.sh | grep -vE "$checkexcluded" | while read -r c; do
 | 
			
		||||
    for c in $(grep 'check_[0-9]' functions_lib.sh | grep -vE "$checkexcluded"); do
 | 
			
		||||
      "$c"
 | 
			
		||||
    done
 | 
			
		||||
  else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue