Skip to content
This repository was archived by the owner on Jul 14, 2020. It is now read-only.

Commit 1172f71

Browse files
dfedermjeffkl
authored andcommitted
Don't drop the marker file on error (#284)
1 parent 673634a commit 1172f71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CBT.NuGet/Tasks/NuGetRestore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public bool Execute(string file, string msBuildVersion, bool requireConsent, boo
229229
{
230230
ret = Execute();
231231

232-
if (enableOptimization && !String.IsNullOrWhiteSpace(markerPath))
232+
if (ret && enableOptimization && !String.IsNullOrWhiteSpace(markerPath))
233233
{
234234
GenerateNuGetOptimizationFile(markerPath);
235235
}

0 commit comments

Comments
 (0)