diff --git a/github-release/tunasync/github-release.py b/github-release/tunasync/github-release.py index 7cc80db..abd6cd7 100644 --- a/github-release/tunasync/github-release.py +++ b/github-release/tunasync/github-release.py @@ -213,6 +213,8 @@ def link_latest(name, repo_dir): os.symlink(name, repo_dir / "LatestRelease") except OSError: pass + + success = True for cfg in REPOS: flat = False # build a folder for each release @@ -241,6 +243,7 @@ def link_latest(name, repo_dir): releases = r.json() except: traceback.print_exc() + success = False break n_downloaded = 0 @@ -289,6 +292,9 @@ def link_latest(name, repo_dir): pass print("Total size is", sizeof_fmt(total_size, suffix="")) + + if not success: + sys.exit(1) if __name__ == "__main__":