Skip to content

Commit

Permalink
skulls: verify the image to flash if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
merge committed Oct 25, 2021
1 parent c6d4537 commit 0633abd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions skulls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,13 @@ if [ ! "$have_input_image" -gt 0 ] ; then
done
fi

if [ -e ${INPUT_IMAGE_PATH}.sha256 ] ; then
cd $(dirname "${INPUT_IMAGE_PATH}")
sha256sum -c ${INPUT_IMAGE_PATH}.sha256
cd - > /dev/null
else
echo -e "${YELLOW}Warning:${NC} Cannot verify image hash"
fi

OUTPUT_PATH=output
INPUT_IMAGE_NAME=$(basename "${INPUT_IMAGE_PATH}")
Expand Down

0 comments on commit 0633abd

Please sign in to comment.