summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2025-10-29 09:24:30 +0000
committerLuke Bratch <luke@bratch.co.uk>2025-10-29 09:24:30 +0000
commit5083383b31bb7cb5a6156177c86866f7281405e3 (patch)
treea8019c3d1f03966f01ea2ddacb0f2f6792536e32
parentd966368c4ee53b9251748451e72c58f5db1a306e (diff)
Correctly exit if `emaint sync` fails.HEADmaster
-rwxr-xr-xportage-update.sh2
1 files changed, 1 insertions, 1 deletions
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