From 11344a6ffd58d8f16dc859a313aaa14421398d81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marcos?= Date: Sat, 17 May 2025 13:02:38 -0300 Subject: [PATCH] Fix tar extraction count when --quiet (#824) --- CHANGELOG.md | 1 + src/archive/tar.rs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46d30df..e0f569f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ Categories Used: ### Bug Fixes +- Fix tar extraction count when --quiet [\#824](https://github.com/ouch-org/ouch/pull/824) ([marcospb19](https://github.com/marcospb19)) - Fix 7z BadSignature error when compressing and then listing [\#819](https://github.com/ouch-org/ouch/pull/819) ([tommady](https://github.com/tommady)) ### Tweaks diff --git a/src/archive/tar.rs b/src/archive/tar.rs index 4f457fe..cc80b95 100644 --- a/src/archive/tar.rs +++ b/src/archive/tar.rs @@ -59,9 +59,8 @@ pub fn unpack_archive(reader: Box, output_folder: &Path, quiet: bool) Bytes::new(file.size()), utils::strip_cur_dir(&output_folder.join(file.path()?)), )); - - files_unpacked += 1; } + files_unpacked += 1; } Ok(files_unpacked)