fix wrong checksum filename
This commit is contained in:
		
							parent
							
								
									41fe77b92d
								
							
						
					
					
						commit
						10e4ffc90d
					
				@ -48,7 +48,7 @@ fi
 | 
			
		||||
 | 
			
		||||
### check for updates to this script
 | 
			
		||||
printf "Checking for updates to this script... "
 | 
			
		||||
repoScriptChecksum=$( grep "$repoScriptName" files.sha256 | grep -o '^\S*' )
 | 
			
		||||
repoScriptChecksum=$( grep "$repoScriptName" "$checksumFilename" | grep -o '^\S*' )
 | 
			
		||||
localScriptChecksum=$( sha256sum "$localScriptName" | grep -o '^\S*' )
 | 
			
		||||
if [ "$localScriptChecksum" = "$repoScriptChecksum" ]; then
 | 
			
		||||
    printf "[NONE]\n\n"
 | 
			
		||||
@ -79,7 +79,7 @@ shift
 | 
			
		||||
for file; do
 | 
			
		||||
    updateTarget="$file"
 | 
			
		||||
    printf "Checking '%s' for updates... " "$updateTarget"
 | 
			
		||||
    repoFile=$( grep "$updateTarget" files.sha256 | grep -o '^\S*' )
 | 
			
		||||
    repoFile=$( grep "$updateTarget" "$checksumFilename" | grep -o '^\S*' )
 | 
			
		||||
    if [ -f "$file" ]; then
 | 
			
		||||
        localFile=$( sha256sum "$updateTarget" | grep -o '^\S*' )
 | 
			
		||||
    else
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user