More work on sha256sum
This commit is contained in:
@@ -375,7 +375,7 @@ getImageBuilder() {
|
|||||||
verifyImage() {
|
verifyImage() {
|
||||||
debug "${FUNCNAME[0]}"
|
debug "${FUNCNAME[0]}"
|
||||||
|
|
||||||
declare checksum file
|
declare checksum file_to_check
|
||||||
|
|
||||||
if hash sha256sum &>/dev/null; then
|
if hash sha256sum &>/dev/null; then
|
||||||
debug "Verifying Image Builder checksums"
|
debug "Verifying Image Builder checksums"
|
||||||
@@ -389,7 +389,7 @@ verifyImage() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
for file in "$FACTORYIMGGZ" "$SYSUPGRADEIMGGZ"; do
|
for file in "$FACTORYIMGGZ" "$SYSUPGRADEIMGGZ"; do
|
||||||
debug "file: $file"
|
debug "file_to_check: $file_to_check"
|
||||||
[[ -f $file ]] || break
|
[[ -f $file ]] || break
|
||||||
checksum=$(grep "${file##*/}" "$SHA256_FILE" | cut -f1 -d' ')
|
checksum=$(grep "${file##*/}" "$SHA256_FILE" | cut -f1 -d' ')
|
||||||
debug "checksum: $checksum"
|
debug "checksum: $checksum"
|
||||||
|
|||||||
Reference in New Issue
Block a user