From 10e4ffc90d01299726e4edd02b80eceb21c598d0 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 13 Mar 2020 02:39:37 -0600 Subject: [PATCH] fix wrong checksum filename --- template-update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template-update.sh b/template-update.sh index 8129d4f..45d345a 100755 --- a/template-update.sh +++ b/template-update.sh @@ -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