Don't read commit file if it doesn't exist
This commit is contained in:
parent
8a2c0ecec1
commit
6317ea30c6
|
|
@ -248,7 +248,10 @@ var buildTarget = "compile"
|
|||
if (Environment.GetEnvironmentVariable("KOREBUILD_ADD_ASSEMBLY_INFO") == "1")
|
||||
{
|
||||
var commitFile = Path.Combine(repoArtifacts, "commit");
|
||||
commits.TryAdd(repo, File.ReadAllLines(commitFile)[0]);
|
||||
if (File.Exists(commitFile))
|
||||
{
|
||||
commits.TryAdd(repo, File.ReadAllLines(commitFile)[0]);
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(ciVolatileShare))
|
||||
|
|
|
|||
Loading…
Reference in New Issue