mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-20 23:32:14 +00:00
Support s tags version parsing (#6484)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
parent
b211bbec7b
commit
286b7e29f9
@ -19,7 +19,7 @@ exec('git describe --tags --abbrev=0', (err, stdout, stderr) => {
|
|||||||
if (err !== null) {
|
if (err !== null) {
|
||||||
console.log('"0.6.0"')
|
console.log('"0.6.0"')
|
||||||
}
|
}
|
||||||
const rawVersion = stdout.trim().replace('v', '').split('.')
|
const rawVersion = stdout.trim().replace('v', '').replace('s', '').split('.')
|
||||||
if (rawVersion.length === 3) {
|
if (rawVersion.length === 3) {
|
||||||
const version = {
|
const version = {
|
||||||
major: parseInt(rawVersion[0]),
|
major: parseInt(rawVersion[0]),
|
||||||
|
Loading…
Reference in New Issue
Block a user