Tools: Fixed Docker image version number

pull/5083/head
Laurent Cozic 2021-06-11 18:34:16 +02:00
parent 8f1e3ba43c
commit 815800827b
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import { execCommand2, rootDir } from './tool-utils';
function getVersionFromTag(tagName: string): string {
if (tagName.indexOf('server-') !== 0) throw new Error(`Invalid tag: ${tagName}`);
const s = tagName.split('-');
return s[1];
return s[1].substr(1);
}
function getIsPreRelease(tagName: string): boolean {