fix(devTools): fix checksum generation error

- fix script checksumming checksum file itself
- move to target directory only after all checksums completed
This commit is contained in:
Asif Bacchus 2021-07-27 21:48:45 -06:00
parent 38af413d05
commit 4456653f03

View File

@ -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