Updated to the HEAD CLI.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta
2021-01-21 15:52:48 +01:00
committed by Akos Kitta
parent 284181b874
commit 0b89cc4a3b
4 changed files with 79 additions and 3 deletions

View File

@@ -72,7 +72,7 @@
shell.exit(1);
}
const version = JSON.parse(jsonVersion).VersionString;
if (version) {
if (version && version !== '0.0.0-git') { // 0.0.0-git is the version of the CLI when built manually and not downloaded as a releases/nightly.
shell.echo(`>>> Checking out version: ${version}...`);
if (shell.exec(`git -C ${repository} checkout ${version} -b ${version}`).code !== 0) {
shell.exit(1);