Merge pull request #9247 from Dentomologist/fix-updater-temporary-folder

Fix updater not always cleaning up temp directory
This commit is contained in:
Léo Lam 2020-11-20 02:01:43 +01:00 committed by GitHub
commit 5921a93d71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -755,10 +755,10 @@ bool RunUpdater(std::vector<std::string> args)
UI::SetDescription("Performing Update...");
bool ok = PerformUpdate(todo, opts.install_base_path, opts.content_store_url, temp_dir);
CleanUpTempDir(temp_dir, todo);
if (!ok)
{
FatalError("Failed to apply the update.");
CleanUpTempDir(temp_dir, todo);
return false;
}