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:
parent
31fbf70bc1
commit
493548b85d
|
@ -435,6 +435,7 @@ static void do_io(struct script_control *ctl)
|
||||||
|
|
||||||
|
|
||||||
strftime(buf, sizeof buf, "%c\n", localtime(&tvec));
|
strftime(buf, sizeof buf, "%c\n", localtime(&tvec));
|
||||||
|
if (!ctl->quiet && ctl->typescriptfp)
|
||||||
fprintf(ctl->typescriptfp, _("Script started on %s"), buf);
|
fprintf(ctl->typescriptfp, _("Script started on %s"), buf);
|
||||||
gettime_monotonic(&ctl->oldtime);
|
gettime_monotonic(&ctl->oldtime);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue