script: fix start message showing in output file when -q is on

Signed-off-by: Rui Zhao (renyuneyun) <renyuneyun@gmail.com>
This commit is contained in:
Rui Zhao (renyuneyun) 2017-04-05 21:11:13 +01:00
parent 31fbf70bc1
commit 493548b85d
1 changed files with 2 additions and 1 deletions

View File

@ -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) {