fix wrong checksum filename

This commit is contained in:
Asif Bacchus
2020-03-13 02:39:37 -06:00
parent 41fe77b92d
commit 10e4ffc90d
+2 -2
View File
@@ -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