diff options
| author | Dentomologist <dentomologist@gmail.com> | 2020-11-13 12:25:53 -0800 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2020-11-13 12:25:53 -0800 |
| commit | 6dcf7643e50a257d4e79749d3fb60ea31e121d11 (patch) | |
| tree | 8699bfdea6f378a42428b0746c059e49868337be /Source | |
| parent | 8a621c2d5e7722de5148a0a40d4072445cffb361 (diff) | |
Fix updater not always cleaning up temp directory
Updater was only deleting TempUpdate folder when an error occured.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/UpdaterCommon/UpdaterCommon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/UpdaterCommon/UpdaterCommon.cpp b/Source/Core/UpdaterCommon/UpdaterCommon.cpp index dc7318827a..7eadf14a19 100644 --- a/Source/Core/UpdaterCommon/UpdaterCommon.cpp +++ b/Source/Core/UpdaterCommon/UpdaterCommon.cpp @@ -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; } |
