[MINOR] Update scripts with proper SHA512 extension
diff --git a/etc/tools/.rat-excludes b/etc/tools/.rat-excludes
index 11606c4..1f22c9d 100644
--- a/etc/tools/.rat-excludes
+++ b/etc/tools/.rat-excludes
@@ -32,7 +32,7 @@
.*json
.*\.md5
.*\.asc
-.*\.sha
+.*\.sha512
NOTICE_extras
LICENSE_extras
diff --git a/etc/tools/verify-release b/etc/tools/verify-release
index f8ac679..f7d003d 100755
--- a/etc/tools/verify-release
+++ b/etc/tools/verify-release
@@ -36,7 +36,7 @@
do
# For all the files in the directory which are not signatures or checksums
- for file_to_verify in `find ${FWDIR}/${directory} -type f -name toree-* -not -name *.asc -not -name *.md5 -not -name *.sha -maxdepth 1`; do
+ for file_to_verify in `find ${FWDIR}/${directory} -type f -name toree-* -not -name *.asc -not -name *.md5 -not -name *.sha512 -maxdepth 1`; do
results="${results}\n${file_to_verify}"
# Verify the signature exists
@@ -58,21 +58,21 @@
fi
# Verify the SHA512 checksum is present
- if [[ -f "${file_to_verify}.sha" ]]; then
+ if [[ -f "${file_to_verify}.sha512" ]]; then
hash_result=`gpg --print-md SHA512 "${file_to_verify}"`
- hash_to_verify=`cat "${file_to_verify}.sha"`
+ hash_to_verify=`cat "${file_to_verify}.sha512"`
# Verify the SHA512 checksum is correct
if [[ "${hash_result}" != "${hash_to_verify}" ]]; then
echo "ERROR: SHA checksum of ${file_to_verify} does not match!"
- results="${results}\n\tx `basename ${file_to_verify}.sha`"
+ results="${results}\n\tx `basename ${file_to_verify}.sha512`"
failure=true
else
- results="${results}\n\t✓ `basename ${file_to_verify}.sha`"
+ results="${results}\n\t✓ `basename ${file_to_verify}.sha512`"
fi
else
echo "ERROR: SHA checksum for ${file_to_verify} does not exist!"
- results="${results}\n\tx `basename ${file_to_verify}.sha`"
+ results="${results}\n\tx `basename ${file_to_verify}.sha512`"
failure=true
fi