script: make optional argument more robust
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
596f42027d
commit
4f7521d66c
|
@ -934,6 +934,8 @@ int main(int argc, char **argv)
|
|||
ctl.quiet = 1;
|
||||
break;
|
||||
case 't':
|
||||
if (optarg && *optarg == '=')
|
||||
optarg++;
|
||||
log_associate(&ctl, &ctl.out,
|
||||
optarg ? optarg : "/dev/stderr",
|
||||
SCRIPT_FMT_TIMING_SIMPLE);
|
||||
|
|
Loading…
Reference in New Issue