diff --git a/makefile.shade b/makefile.shade index 1f1a414729..0cf14769f1 100644 --- a/makefile.shade +++ b/makefile.shade @@ -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))