From: Andreas Henriksson Date: Sun, 22 Jun 2014 01:12:44 +0000 (+0200) Subject: script: silence the done message on --quiet as well X-Git-Tag: v2.25-rc2~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc47cfee48373b3d3869e07ec9bd53a7a77d290e;p=thirdparty%2Futil-linux.git 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 --- 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"));