Merge pull request #9247 from Dentomologist/fix-updater-temporary-folder
Fix updater not always cleaning up temp directory
This commit is contained in:
commit
5921a93d71
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue