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