mirror of
				https://github.com/Bandie/grub2-signing-extension.git
				synced 2024-04-01 15:51:26 +00:00 
			
		
		
		
	Removing unnecessary variable
This commit is contained in:
		@@ -8,8 +8,7 @@ red=$(tput setaf 1)
 | 
				
			|||||||
green=$(tput setaf 2)
 | 
					green=$(tput setaf 2)
 | 
				
			||||||
normal=$(tput sgr0)
 | 
					normal=$(tput sgr0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
all_files1=( )
 | 
					all_files=( )
 | 
				
			||||||
all_files2=( )
 | 
					 | 
				
			||||||
error_files=( )
 | 
					error_files=( )
 | 
				
			||||||
missing_files=( )
 | 
					missing_files=( )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -22,7 +21,7 @@ do
 | 
				
			|||||||
    then
 | 
					    then
 | 
				
			||||||
        error_files+=( "$i" )
 | 
					        error_files+=( "$i" )
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
    all_files1+=( "$i" )
 | 
					    all_files+=( "$i" )
 | 
				
			||||||
done < <(find /boot -type f -name "*.sig" -print0)
 | 
					done < <(find /boot -type f -name "*.sig" -print0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo "Checking missing signatures in /boot..." >&2
 | 
					echo "Checking missing signatures in /boot..." >&2
 | 
				
			||||||
@@ -32,11 +31,10 @@ do
 | 
				
			|||||||
    then
 | 
					    then
 | 
				
			||||||
        missing_files+=( "$i" )
 | 
					        missing_files+=( "$i" )
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
    all_files2+=( "$i" )
 | 
					 | 
				
			||||||
done < <(find /boot -type f -not -name "*.sig" -print0)
 | 
					done < <(find /boot -type f -not -name "*.sig" -print0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Nothing to verify? Exit 2.
 | 
					# Nothing to verify? Exit 2.
 | 
				
			||||||
if (( ${#all_files1[@]} == 0 ))
 | 
					if (( ${#all_files[@]} == 0 ))
 | 
				
			||||||
then
 | 
					then
 | 
				
			||||||
    echo "Nothing to verify." >&2
 | 
					    echo "Nothing to verify." >&2
 | 
				
			||||||
    exit 2
 | 
					    exit 2
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user