Skip to content

Commit

Permalink
fix unzip cmdline tool
Browse files Browse the repository at this point in the history
  • Loading branch information
marler8997 committed May 4, 2024
1 parent dde66bb commit e780f3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion unzip.zig
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,7 @@ pub fn main() !void {
const zip_file = std.fs.cwd().openFile(zip_file_arg, .{}) catch |err|
fatal("open '{s}' failed: {s}", .{zip_file_arg, @errorName(err)});
defer zip_file.close();
try @import("zip.zig").pipeToFileSystem(out_dir, zip_file);
try @import("zip.zig").extract(out_dir, zip_file.seekableStream(), .{
.allow_backslashes = true,
});
}

0 comments on commit e780f3f

Please sign in to comment.