From e6a4659b51a4003a7cbdf0072e25b1d4d69d7591 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 13 Mar 2020 02:40:46 -0600 Subject: [PATCH] fix wrong checksum filename --- ab-openldap-update.sh | 4 ++-- checksums.sha256 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ab-openldap-update.sh b/ab-openldap-update.sh index 66ade28..51a12d8 100755 --- a/ab-openldap-update.sh +++ b/ab-openldap-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 diff --git a/checksums.sha256 b/checksums.sha256 index fbea6ad..7775c6f 100644 --- a/checksums.sha256 +++ b/checksums.sha256 @@ -3,4 +3,4 @@ 14b11370f980bd10b3cd96ddf3acab73c723f7594127e38d4b90ad09660b5e0a ab-openldap-backup.sh 5257cbc175e1f35061e419f54c953875597996d887b3c882990319ecc2371bfd ab-openldap.params.template 79d96713f2e0a1e9d8c4192077986fc8e6efe805441595d014931ec56163c3c9 ab-openldap.sh -690ed3a1bf7d5aa19ae4be30d8cb72a32dc2155938e1a3b8eeb5d794409b2a63 ab-openldap-update.sh \ No newline at end of file +fb6fd8671c3bc5c2d21271ff2c7acfeb9740caea9be3ee663c750f9aa5535b72 ab-openldap-update.sh \ No newline at end of file