Skip to content

Commit

Permalink
Merge pull request #85 from termoshtt/do-not-check-existing-archive
Browse files Browse the repository at this point in the history
Overwrite oci-archive file if already exists
  • Loading branch information
termoshtt committed Jan 9, 2023
2 parents 16cf147 + 4abbceb commit 4af3ad9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ocipkg-cli/src/bin/ocipkg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ fn main() -> Result<()> {
} => {
let mut output = output;
output.set_extension("tar");
if output.exists() {
panic!("Output already exists: {}", output.display());
}
let f = fs::File::create(output)?;
let mut b = ocipkg::image::Builder::new(f);
if let Some(name) = tag {
Expand All @@ -135,9 +132,6 @@ fn main() -> Result<()> {
} => {
let mut output = output;
output.set_extension("tar");
if output.exists() {
panic!("Output already exists: {}", output.display());
}
let f = fs::File::create(output)?;
let mut b = ocipkg::image::Builder::new(f);
if let Some(name) = tag {
Expand Down

0 comments on commit 4af3ad9

Please sign in to comment.