fix wrong checksum filename
This commit is contained in:
		
							parent
							
								
									10e4ffc90d
								
							
						
					
					
						commit
						e6a4659b51
					
				@ -48,7 +48,7 @@ fi
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
### check for updates to this script
 | 
					### check for updates to this script
 | 
				
			||||||
printf "Checking 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*' )
 | 
					localScriptChecksum=$( sha256sum "$localScriptName" | grep -o '^\S*' )
 | 
				
			||||||
if [ "$localScriptChecksum" = "$repoScriptChecksum" ]; then
 | 
					if [ "$localScriptChecksum" = "$repoScriptChecksum" ]; then
 | 
				
			||||||
    printf "[NONE]\n\n"
 | 
					    printf "[NONE]\n\n"
 | 
				
			||||||
@ -79,7 +79,7 @@ shift
 | 
				
			|||||||
for file; do
 | 
					for file; do
 | 
				
			||||||
    updateTarget="$file"
 | 
					    updateTarget="$file"
 | 
				
			||||||
    printf "Checking '%s' for updates... " "$updateTarget"
 | 
					    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
 | 
					    if [ -f "$file" ]; then
 | 
				
			||||||
        localFile=$( sha256sum "$updateTarget" | grep -o '^\S*' )
 | 
					        localFile=$( sha256sum "$updateTarget" | grep -o '^\S*' )
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
 | 
				
			|||||||
@ -3,4 +3,4 @@
 | 
				
			|||||||
14b11370f980bd10b3cd96ddf3acab73c723f7594127e38d4b90ad09660b5e0a  ab-openldap-backup.sh
 | 
					14b11370f980bd10b3cd96ddf3acab73c723f7594127e38d4b90ad09660b5e0a  ab-openldap-backup.sh
 | 
				
			||||||
5257cbc175e1f35061e419f54c953875597996d887b3c882990319ecc2371bfd  ab-openldap.params.template
 | 
					5257cbc175e1f35061e419f54c953875597996d887b3c882990319ecc2371bfd  ab-openldap.params.template
 | 
				
			||||||
79d96713f2e0a1e9d8c4192077986fc8e6efe805441595d014931ec56163c3c9  ab-openldap.sh
 | 
					79d96713f2e0a1e9d8c4192077986fc8e6efe805441595d014931ec56163c3c9  ab-openldap.sh
 | 
				
			||||||
690ed3a1bf7d5aa19ae4be30d8cb72a32dc2155938e1a3b8eeb5d794409b2a63  ab-openldap-update.sh
 | 
					fb6fd8671c3bc5c2d21271ff2c7acfeb9740caea9be3ee663c750f9aa5535b72  ab-openldap-update.sh
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user