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