Skip to content

Commit

Permalink
Merge pull request #362 from DSD-DBS/download-archive-fix
Browse files Browse the repository at this point in the history
fix: Fix issue where an empty env variable would break download_archive
  • Loading branch information
MoritzWeber0 authored Jan 24, 2025
2 parents fbe2ae4 + 637fe95 commit 72bc23a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capella/download_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def main() -> None:
for arch in dir_content
if arch.endswith("linux-gtk-x86_64.tar.gz")
)
download_url = os.getenv(
"CAPELLA_DOWNLOAD_URL", CAPELLA_DEFAULT_DOWNLOAD_URL
download_url = (
os.getenv("CAPELLA_DOWNLOAD_URL") or CAPELLA_DEFAULT_DOWNLOAD_URL
).format(f"{capella_archive_path}{archive_name}")
print(f"Downloading Capella from `{download_url}`...")

Expand Down

0 comments on commit 72bc23a

Please sign in to comment.