From b4dd8cdaa1a5739c436f3f72223bb402c36c49fa Mon Sep 17 00:00:00 2001 From: Ed Avis Date: Fri, 21 May 2010 15:40:33 +0100 Subject: [PATCH] Also suppress final [OK] message with -q flag. --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 925a70f..67a871b 100644 --- a/main.c +++ b/main.c @@ -321,7 +321,8 @@ static void decompress_file(void) fprintf(control.msgout, "\r"); if (!(control.flags & (FLAG_STDOUT | FLAG_TEST_ONLY))) fprintf(control.msgout, "Output filename is: %s: ", control.outfile); - fprintf(control.msgout, "[OK] - %lld bytes \n", (long long)expected_size); + if (control.flags & FLAG_SHOW_PROGRESS) + fprintf(control.msgout, "[OK] - %lld bytes \n", (long long)expected_size); fflush(control.msgout); if (close(fd_hist) != 0 || close(fd_out) != 0)