Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.

Commit 9139c7d

Browse files
committed
buildroot/rebuild.sh: Improve sha256sum checking
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
1 parent 8880598 commit 9139c7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
31a0dd7f5df75d20f6b74f0684918b643e5bf08d87dd5f9f02525852eecccf95 buildroot-2019.02.3.tar.gz

buildroot/rebuild.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ function download_br() {
66
TARBALL=buildroot-${BUILDROOT_VERSION}.tar.gz
77
rm -f "${TARBALL}"
88
curl -LO https://buildroot.org/downloads/"${TARBALL}"
9-
SHA256=31a0dd7f5df75d20f6b74f0684918b643e5bf08d87dd5f9f02525852eecccf95
10-
if [[ $(sha256sum "${TARBALL}" | cut -d ' ' -f 1) != ${SHA256} ]]; then
9+
if ! sha256sum --quiet -c "${TARBALL}".sha256; then
1110
echo "Downloaded tarball's hash does not match known good one! Please try redownloading."
1211
exit 1
1312
fi

0 commit comments

Comments
 (0)