feature-cli: fix version subcommand

This commit is contained in:
Starbeamrainbowlabs 2020-04-21 23:07:43 +01:00
parent d3a918af7a
commit f72062332a
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 0 deletions

View File

@ -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;
});