feature-cli: fix version subcommand
This commit is contained in:
parent
d3a918af7a
commit
f72062332a
|
@ -9,6 +9,7 @@ register_module([
|
|||
global $settings;
|
||||
|
||||
cli_register("version", "Shows the current version of Pepperminty Wiki", function(array $_args) : int {
|
||||
global $version, $commit;
|
||||
echo("$version-".substr($commit, 0, 7)."\n");
|
||||
return 0;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue