Skip to content

Commit 6ec2ef6

Browse files
committed
Fix can't find file
1 parent 16ab3b6 commit 6ec2ef6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/UnturnedRedistUpdateTool/RedistUpdater.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,12 @@ public RedistUpdater(string managedDir, string redistPath, List<string> publiciz
5757
else
5858
{
5959
var managedHash = HashHelper.GetFileHash(managedFilePath);
60-
var redistHash = HashHelper.GetFileHash(redistFilePath);
61-
if (managedHash == redistHash)
62-
continue;
60+
if (File.Exists(redistFilePath))
61+
{
62+
var redistHash = HashHelper.GetFileHash(redistFilePath);
63+
if (managedHash == redistHash)
64+
continue;
65+
}
6366
file.CopyTo(redistFilePath, true);
6467
var copiedHash = HashHelper.GetFileHash(redistFilePath);
6568
manifests[file.Name] = copiedHash;

0 commit comments

Comments
 (0)