From 5083383b31bb7cb5a6156177c86866f7281405e3 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Wed, 29 Oct 2025 09:24:30 +0000 Subject: Correctly exit if `emaint sync` fails. --- portage-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'portage-update.sh') diff --git a/portage-update.sh b/portage-update.sh index 8ded882..bf2f684 100755 --- a/portage-update.sh +++ b/portage-update.sh @@ -45,7 +45,7 @@ done # Sync all repositories configured with auto-sync, unless skipped if [ -z ${SKIP_SYNC+x} ]; then echo 'emaint sync --auto' - emaint sync --auto || (echo "$0: error: failed to sync repositories" ; echo exit 1) + emaint sync --auto || (echo "$0: error: failed to sync repositories" ; exit 1) || exit 1 fi # Check to see if there's any news, unless skipped -- cgit v1.2.3