Skip to content

Commit

Permalink
Burn .dead folders on cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
anaisbetts committed Jul 20, 2015
1 parent e2c3134 commit 7a434ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Squirrel/UpdateManager.ApplyReleases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,11 @@ await squirrelApps.ForEachAsync(async exe => {
});
}

// Include dead folders in folders to :fire:
toCleanup = di.GetDirectories()
.Where(x => x.Name.ToLowerInvariant().Contains("app-"))
.Where(x => x.Name != currentVersionFolder && x.Name != originalVersionFolder);

// Finally, clean up the app-X.Y.Z directories
await toCleanup.ForEachAsync(async x => {
try {
Expand Down

0 comments on commit 7a434ee

Please sign in to comment.