diff options
Diffstat (limited to 'meta-quanta/meta-gbs/recipes-gbs/gbs-bios-update/files/bios-verify.sh')
-rw-r--r-- | meta-quanta/meta-gbs/recipes-gbs/gbs-bios-update/files/bios-verify.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-quanta/meta-gbs/recipes-gbs/gbs-bios-update/files/bios-verify.sh b/meta-quanta/meta-gbs/recipes-gbs/gbs-bios-update/files/bios-verify.sh index 3da25e483d..ac4ee1d577 100644 --- a/meta-quanta/meta-gbs/recipes-gbs/gbs-bios-update/files/bios-verify.sh +++ b/meta-quanta/meta-gbs/recipes-gbs/gbs-bios-update/files/bios-verify.sh @@ -14,11 +14,11 @@ echo "Verify bios image..." if [ -e $IMAGE_FILE ] && [ -e $SIG_FILE ]; then - sha256_image=`sha256sum "$IMAGE_FILE" | awk '{print $1}'` - sha256_file=`awk '{print $1}' $SIG_FILE` + sha256_image=$(sha256sum "$IMAGE_FILE" | awk '{print $1}') + sha256_file=$(awk '{print $1}' $SIG_FILE) fi -if [[ $sha256_image != $sha256_file ]]; +if [ "$sha256_image" != "$sha256_file" ]; then echo "bios image verify fail." rm -f $IMAGE_FILE |