Skip to content

Commit

Permalink
Add commonly used tgz extension as an alias of tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell committed Mar 28, 2024
1 parent 1daa5fb commit 353b75a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/sources/artifact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ impl ArtifactFormat {
match extension {
ext if ext.eq_ignore_ascii_case("zip") => Some(Self::Zip),
ext if ext.eq_ignore_ascii_case("tar") => Some(Self::Tar),
ext if ext.eq_ignore_ascii_case("tgz") => Some(Self::TarGz),
ext if ext.eq_ignore_ascii_case("gz") => {
let stem = Path::new(&lowercased).file_stem()?;
let ext2 = Path::new(stem).extension()?;
Expand Down

0 comments on commit 353b75a

Please sign in to comment.