Fixed: Update from version in logs

Closes #1574

(cherry picked from commit bc3e3714b97dec19091e45324d9f2b550f1dbbd5)
This commit is contained in:
bakerboy448 2022-03-04 13:31:44 -06:00
parent b25f8449a2
commit 72a0e38b36

View file

@ -1,6 +1,8 @@
using System;
using System.IO;
using NLog;
using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Common.Extensions;
namespace NzbDrone.Update.UpdateEngine
{
@ -22,7 +24,7 @@ public string GetExistingVersion(string targetFolder)
{
try
{
var targetExecutable = Path.Combine(targetFolder, "Readarr.exe");
var targetExecutable = Path.Combine(targetFolder, BuildInfo.AppName.ProcessNameToExe());
if (File.Exists(targetExecutable))
{