Merge "Improve checksum performance for images"
This commit is contained in:
commit
389b372976
@ -61,8 +61,9 @@ function finish_image () {
|
|||||||
|
|
||||||
mv $OUT_IMAGE_PATH $1
|
mv $OUT_IMAGE_PATH $1
|
||||||
if [ "$DIB_CHECKSUM" == "1" ]; then
|
if [ "$DIB_CHECKSUM" == "1" ]; then
|
||||||
md5sum $1 > $1.md5
|
# NOTE(pabelanger): Read image into memory once and generate both checksum
|
||||||
sha256sum $1 > $1.sha256
|
# files.
|
||||||
|
md5sum $1 > $1.md5 & sha256sum $1 > $1.sha256 & wait
|
||||||
fi
|
fi
|
||||||
echo "Image file $1 created..."
|
echo "Image file $1 created..."
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user