From 1c782c3b5e6d6f2257cbf04bb81beb5991267285 Mon Sep 17 00:00:00 2001 From: opa334 Date: Mon, 31 Oct 2022 23:58:06 +0100 Subject: [PATCH] fix update process sometimes installing an older build --- Shared/TSListControllerShared.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Shared/TSListControllerShared.m b/Shared/TSListControllerShared.m index ac4d317..a25c456 100644 --- a/Shared/TSListControllerShared.m +++ b/Shared/TSListControllerShared.m @@ -49,6 +49,7 @@ else { NSString* tarTmpPath = [NSTemporaryDirectory() stringByAppendingPathComponent:@"TrollStore.tar"]; + [[NSFileManager defaultManager] removeItemAtPath:tarTmpPath error:nil]; [[NSFileManager defaultManager] copyItemAtPath:location.path toPath:tarTmpPath error:nil]; doHandler(tarTmpPath);