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:
parent
38af413d05
commit
4456653f03
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user