diff options
author | Andreas Henriksson | 2014-06-22 03:12:44 +0200 |
---|---|---|
committer | Karel Zak | 2014-06-23 11:31:08 +0200 |
commit | dc47cfee48373b3d3869e07ec9bd53a7a77d290e (patch) | |
tree | 436b37e7f6866304cf62a8f111b76c6953895ef0 /term-utils | |
parent | script: --quiet option is not quiet. (diff) | |
download | kernel-qcow2-util-linux-dc47cfee48373b3d3869e07ec9bd53a7a77d290e.tar.gz kernel-qcow2-util-linux-dc47cfee48373b3d3869e07ec9bd53a7a77d290e.tar.xz kernel-qcow2-util-linux-dc47cfee48373b3d3869e07ec9bd53a7a77d290e.zip |
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 <andreas@fatal.se>
Diffstat (limited to 'term-utils')
-rw-r--r-- | term-utils/script.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/term-utils/script.c b/term-utils/script.c index 21fb5af9e..2da75124b 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")); |