aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2019-03-05 09:00:37 +0100
committerSlack Coder <slackcoder@server.ky>2019-03-05 09:00:37 +0100
commite201479bd69e868d5278f98ad8aca4bca2734a0a (patch)
tree52ed9bd204bd1d512902c625131ef95a55ef142a
parentcdba39ac084f70a07e656cb95e08011f58e3ccae (diff)
downloadslackware.com-client-e201479bd69e868d5278f98ad8aca4bca2734a0a.tar.xz
FIX: Bail on first error when syncing
For better transparency with the user, exit when the first error is encountered when running 'sync'.
-rwxr-xr-xnot-slackware.com8
1 files 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)