From dc47cfee48373b3d3869e07ec9bd53a7a77d290e Mon Sep 17 00:00:00 2001 From: Andreas Henriksson Date: Sun, 22 Jun 2014 03:12:44 +0200 Subject: [PATCH] script: silence the done message on --quiet as well Apparently James Hunts patch (which he provided a long time ago) is no longer covering it all. This followup patch also silences the "Script done ..." message when --quiet is used. Signed-off-by: Andreas Henriksson --- term-utils/script.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/term-utils/script.c b/term-utils/script.c index 21fb5af9ec..2da75124bb 100644 --- a/term-utils/script.c +++ b/term-utils/script.c @@ -578,7 +578,8 @@ done(void) { char buf[BUFSIZ]; tvec = time((time_t *)NULL); my_strftime(buf, sizeof buf, "%c\n", localtime(&tvec)); - fprintf(fscript, _("\nScript done on %s"), buf); + if (!qflg) + fprintf(fscript, _("\nScript done on %s"), buf); if (close_stream(fscript) != 0) errx(EXIT_FAILURE, _("write error")); -- 2.47.3