From 37040710cf548d19252296774ef5e59e8c69d0e1 Mon Sep 17 00:00:00 2001 From: layman Date: Fri, 6 Apr 2018 10:06:46 +0200 Subject: [PATCH] gentooup: update only overlays if chrooted --- gentooup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gentooup.sh b/gentooup.sh index b2df768..34c4b35 100755 --- a/gentooup.sh +++ b/gentooup.sh @@ -48,6 +48,10 @@ if [[ ${1} == "--full" || ${2} == "--full" ]] ; then PORTAGE_UPGRADE_OPTIONS+=("--with-bdeps=y") fi +if [[ $CHROOTED == 1 ]] ; then + SYNC_COMMAND="layman -S" +fi + #any parameter prevents syncing if [[ ! -z ${SYNC_COMMAND} ]] ; then ${SYNC_COMMAND}