From e201479bd69e868d5278f98ad8aca4bca2734a0a Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Tue, 5 Mar 2019 09:00:37 +0100 Subject: FIX: Bail on first error when syncing For better transparency with the user, exit when the first error is encountered when running 'sync'. --- not-slackware.com | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/not-slackware.com b/not-slackware.com index fb0bc4a..c08abf3 100755 --- a/not-slackware.com +++ b/not-slackware.com @@ -362,10 +362,10 @@ end def command_sync(mirror) - errs = [] - errs << Local.download_and_verify(mirror, CHECKSUMS) - errs << Local.download_and_verify(mirror, CHANGELOG) - exitOnError(errs) + err = Local.download_and_verify(mirror, CHECKSUMS) + exitOnError(err) + err = Local.download_and_verify(mirror, CHANGELOG) + exitOnError(err) end def command_updates(changelog_path, checksum_path, installed_packages) -- cgit v1.2.3