mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-23 05:35:53 -04:00
Merge pull request #798 from axQuadratic/mmsg_oflag
mmsg: fix -o flag causing empty output when used with -g
This commit is contained in:
commit
d967153c73
1 changed files with 3 additions and 3 deletions
|
|
@ -569,12 +569,12 @@ int32_t main(int32_t argc, char *argv[]) {
|
|||
mode = WATCH;
|
||||
break;
|
||||
case 'o':
|
||||
if (mode == SET)
|
||||
if (mode == GET || mode == WATCH)
|
||||
oflag = 1;
|
||||
else if (mode == SET)
|
||||
output_name = EARGF(usage());
|
||||
else
|
||||
output_name = ARGF();
|
||||
if (!output_name)
|
||||
oflag = 1;
|
||||
break;
|
||||
case 't':
|
||||
tflag = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue