diff --git a/app/Console/Commands/Version.php b/app/Console/Commands/Version.php index d86349dc..6794acf6 100644 --- a/app/Console/Commands/Version.php +++ b/app/Console/Commands/Version.php @@ -44,6 +44,13 @@ class Version extends BaseCommand file_put_contents($version_file, Yaml::dump($cfg, 4, 2)); } - print $version."\n"; + # Only show the major.minor.patch version + if ($this->option('base-only')) { + $version = 'v' . $cfg['current']['major'] . '.' + . $cfg['current']['minor'] . '.' + . $cfg['current']['patch']; + } + + print $version . "\n"; } }