From 4456653f035c21f802954dceb1d7b4c2624d88b9 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 27 Jul 2021 21:48:45 -0600 Subject: [PATCH] fix(devTools): fix checksum generation error - fix script checksumming checksum file itself - move to target directory only after all checksums completed --- devUtils/generateHelperChecksums.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/devUtils/generateHelperChecksums.sh b/devUtils/generateHelperChecksums.sh index a3f6645..6d3dfde 100755 --- a/devUtils/generateHelperChecksums.sh +++ b/devUtils/generateHelperChecksums.sh @@ -19,8 +19,9 @@ fi # generate checksum file \rm -f "${srcDir}/checksums.sha256" -find "${srcDir}/" -type f -exec sha256sum {} + >>"${srcDir}/checksums.sha256" -sed -i "s+$srcDir/++g" "${srcDir}/checksums.sha256" +find "${srcDir}/" -type f -exec sha256sum {} + >>./checksums.sha256 +sed -i "s+$srcDir/++g" ./checksums.sha256 +\mv ./checksums.sha256 "${srcDir}/" # exit gracefully exit 0