summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/build/release/sha512sums
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-06-08 07:52:57 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-06-08 07:52:57 (EDT)
commite846db194ea06a189cb8b2d51548463c9641720d (patch)
treed4d1131a0894f78d75be5b0c3ab78ca2772266a7 /resources/scripts/helpers/build/release/sha512sums
parent2a0b3f33325ee1e30005e9f039a30eb7de621688 (diff)
downloadlibreboot-e846db194ea06a189cb8b2d51548463c9641720d.zip
libreboot-e846db194ea06a189cb8b2d51548463c9641720d.tar.gz
libreboot-e846db194ea06a189cb8b2d51548463c9641720d.tar.bz2
build/release/sha512sums: clean up
Diffstat (limited to 'resources/scripts/helpers/build/release/sha512sums')
-rwxr-xr-xresources/scripts/helpers/build/release/sha512sums8
1 files changed, 5 insertions, 3 deletions
diff --git a/resources/scripts/helpers/build/release/sha512sums b/resources/scripts/helpers/build/release/sha512sums
index ef02413..5d86882 100755
--- a/resources/scripts/helpers/build/release/sha512sums
+++ b/resources/scripts/helpers/build/release/sha512sums
@@ -21,6 +21,8 @@
version="$(git describe --tags HEAD)"
versiondir="release/${version}"
+sha512filename="sha512sum.txt"
+sha512filepath="${versiondir}/${sha512filename}"
if [ ! -d "${versiondir}/" ]; then
@@ -30,11 +32,11 @@ if [ ! -d "${versiondir}/" ]; then
fi
# delete the old file
-rm -f "${versiondir}/sha512sum.txt"
+rm -f "${sha512filepath}"
# create sha512sum file
-printf "Creating list of SHA512 sums in %s/sha512sum.txt...\n" "${versiondir}"
-(cd "${versiondir}/" && for file in $(find -type f); do sha512sum $file >> sha512sum.txt; done)
+printf "Creating list of SHA512 sums in %s...\n" "${sha512filepath}"
+(cd "${versiondir}/" && for file in $(find -type f); do sha512sum $file >> "${sha512filename}"; done)
printf "...done.\n"
printf "\n"