From 66bcb35ed75d8eb77393ff3523467406b32609d6 Mon Sep 17 00:00:00 2001
From: Salt <rehashedsalt@cock.li>
Date: Wed, 2 Dec 2020 19:27:50 -0600
Subject: [PATCH] Be quieter when comparing checksums

---
 gentoostrap.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gentoostrap.sh b/gentoostrap.sh
index 5bc7225..4e9ea82 100755
--- a/gentoostrap.sh
+++ b/gentoostrap.sh
@@ -110,12 +110,12 @@ build-gentoo() {
 	if ! [ -f "$stage3file" ]; then
 		log "Downloading stage3"
 		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"
 		curl -s "$stage3" -o "$stage3file"
 	fi
-	# At this point, we should have a new stage3 that matches our signature; die of not
-	if ! grep "$stage3sig" -e "$(sha512sum "$stage3file" | awk '{print $1}')"; then
+	# 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}')" > /dev/null 2>&1; then
 		error "stage3 checksum verification failed" 50
 	fi
 	log "Decompressing tarball; this will prompt for root privileges"