From 55d721e5b6d92d2dd799fb60398c180006ca4c9d Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 4 Dec 2020 06:45:55 -0600 Subject: [PATCH] Fix logging on emerge-webrsync --- gentoostrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gentoostrap.sh b/gentoostrap.sh index c5563ae..0218b6c 100755 --- a/gentoostrap.sh +++ b/gentoostrap.sh @@ -228,8 +228,8 @@ build-gentoo-chroot() { log "Building Gentoo from within chroot" # Sync repositories - log "Getting ebuild repositories" - if ! grep /etc/portage/repos.conf/gentoo.conf -ie 'git'; then + if ! grep /etc/portage/repos.conf/gentoo.conf -ie 'git' > /dev/null 2>&1; then + log "Getting ebuild repositories" # Only do this rsync if we're actually rsyncing # As part of installation, we switch to git, so this prevents us from hammering upstream, too emerge-webrsync