mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
And be consistent with return code as well (previous commit).
This commit is contained in:
parent
5ff4274f9b
commit
c7fe469700
@ -1366,7 +1366,7 @@ int lvm2_main(int argc, char **argv)
|
||||
|
||||
/* "version" command is simple enough so it doesn't need any complex init */
|
||||
if (!alias && argc > 1 && !strcmp(argv[1], "version"))
|
||||
return version(NULL, argc, argv);
|
||||
return lvm_return_code(version(NULL, argc, argv));
|
||||
|
||||
if (!(cmd = init_lvm()))
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user