Success exit status on version

This commit is contained in:
Alex Kotov 2021-11-21 06:52:24 +05:00
parent 43b227926e
commit d35c4c0844
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@
int main(int argc, char *argv[])
{
if (argc == 2 && strcmp(argv[1], "-v") == 0) {
die("polytreewm-"VERSION);
fputs("polytreewm-"VERSION"\n", stderr);
exit(EXIT_SUCCESS);
}
if (argc != 1) {