1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-12-22 13:45:02 +00:00

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

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