From 493548b85d528bb13e72af8240fd997fdbfdd7ea Mon Sep 17 00:00:00 2001 From: Rui Zhao (renyuneyun) Date: Wed, 5 Apr 2017 21:11:13 +0100 Subject: script: fix start message showing in output file when -q is on Signed-off-by: Rui Zhao (renyuneyun) --- term-utils/script.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'term-utils/script.c') diff --git a/term-utils/script.c b/term-utils/script.c index d1ef07203..a58590188 100644 --- a/term-utils/script.c +++ b/term-utils/script.c @@ -435,7 +435,8 @@ static void do_io(struct script_control *ctl) strftime(buf, sizeof buf, "%c\n", localtime(&tvec)); - fprintf(ctl->typescriptfp, _("Script started on %s"), buf); + if (!ctl->quiet && ctl->typescriptfp) + fprintf(ctl->typescriptfp, _("Script started on %s"), buf); gettime_monotonic(&ctl->oldtime); while (!ctl->die) { -- cgit v1.2.3-55-g7522