Skip to content

Commit

Permalink
fix zip vs gz issue
Browse files Browse the repository at this point in the history
  • Loading branch information
natemcintosh committed Feb 11, 2025
1 parent b33faf5 commit eda8523
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "duckup"
version = "0.2.3"
version = "0.2.4"
edition = "2021"
license-file = "LICENSE"
description = "A tool for downloading new versions of duckdb"
Expand Down
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ fn unzip_file(zip_file: &Path, output_dir: &Path) -> Result<()> {
fn get_matching_url<'a>(zip_urls: &'a [String], info: &'a os_info::Info) -> Result<&'a str> {
Ok(zip_urls
.iter()
// Prefer zip over gz
.filter(|url| url.ends_with("zip"))
// Filter to urls with this OS
.filter(|url| url.contains("linux"))
// Only want the CLI binaries
Expand Down

0 comments on commit eda8523

Please sign in to comment.