gentooup: update only overlays if chrooted

This commit is contained in:
layman 2018-04-06 10:06:46 +02:00
parent d7842fb21d
commit 37040710cf

View file

@ -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}