1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-14 18:27:44 +02:00

Tools: Fixed Docker image version number

This commit is contained in:
Laurent Cozic 2021-06-11 18:34:16 +02:00
parent 8f1e3ba43c
commit 815800827b

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 {