Be quieter when comparing checksums
This commit is contained in:
parent
81357d6465
commit
66bcb35ed7
@ -110,12 +110,12 @@ build-gentoo() {
|
|||||||
if ! [ -f "$stage3file" ]; then
|
if ! [ -f "$stage3file" ]; then
|
||||||
log "Downloading stage3"
|
log "Downloading stage3"
|
||||||
curl -s "$stage3" -o "$stage3file"
|
curl -s "$stage3" -o "$stage3file"
|
||||||
elif ! grep "$stage3sig" -e "$(sha512sum "$stage3file" | awk '{print $1}')"; then
|
elif ! grep "$stage3sig" -e "$(sha512sum "$stage3file" | awk '{print $1}')" > /dev/null 2>&1; then
|
||||||
log "Checksum verification failed; downloading new stage3"
|
log "Checksum verification failed; downloading new stage3"
|
||||||
curl -s "$stage3" -o "$stage3file"
|
curl -s "$stage3" -o "$stage3file"
|
||||||
fi
|
fi
|
||||||
# At this point, we should have a new stage3 that matches our signature; die of not
|
# At this point, we should have a new stage3 that matches our signature; die if not
|
||||||
if ! grep "$stage3sig" -e "$(sha512sum "$stage3file" | awk '{print $1}')"; then
|
if ! grep "$stage3sig" -e "$(sha512sum "$stage3file" | awk '{print $1}')" > /dev/null 2>&1; then
|
||||||
error "stage3 checksum verification failed" 50
|
error "stage3 checksum verification failed" 50
|
||||||
fi
|
fi
|
||||||
log "Decompressing tarball; this will prompt for root privileges"
|
log "Decompressing tarball; this will prompt for root privileges"
|
||||||
|
Reference in New Issue
Block a user