From d8b18297876b070a76f5f771dd1953623cf48b4f Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Fri, 20 May 2016 02:13:11 +0000 Subject: [PATCH] Fix update_portage.sh --- scripts/update_portage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/update_portage.sh b/scripts/update_portage.sh index 342325b..a9f6912 100755 --- a/scripts/update_portage.sh +++ b/scripts/update_portage.sh @@ -112,10 +112,10 @@ trap "cleanup" INT TERM mount_overlay +# End early if there are no upstream changes echo 'Syncing gentoo portage tree ...' emaint sync -r gentoo 2>/dev/null | grep -q 'You are already up to date' -# End early if there are no upstream changes -[ $? -ne 0 ] && { echo 'No upstream changes. Exiting.'; cleanup; } +[ $? -eq 0 ] && { echo 'No upstream changes. Exiting.'; cleanup; } # Optional step to customize the tree, mostly to alter upstream use masks customize