mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: Updater being passed invalid path in some cases
This commit is contained in:
@@ -128,7 +128,7 @@ namespace NzbDrone.Core.Update
|
||||
_diskProvider.DeleteFolder(_appFolderInfo.GetUpdateClientFolder(), true);
|
||||
|
||||
_logger.ProgressInfo("Starting update script: {0}", _configFileProvider.UpdateScriptPath);
|
||||
_processProvider.Start(scriptPath, GetUpdaterArgs(updateSandboxFolder.WrapInQuotes()));
|
||||
_processProvider.Start(scriptPath, GetUpdaterArgs(updateSandboxFolder));
|
||||
}
|
||||
|
||||
private string GetUpdaterArgs(string updateSandboxFolder)
|
||||
@@ -136,7 +136,7 @@ namespace NzbDrone.Core.Update
|
||||
var processId = _processProvider.GetCurrentProcess().Id.ToString();
|
||||
var executingApplication = _runtimeInfo.ExecutingApplication;
|
||||
|
||||
return String.Join(" ", processId, updateSandboxFolder.WrapInQuotes(), executingApplication.WrapInQuotes());
|
||||
return String.Join(" ", processId, updateSandboxFolder.TrimEnd(Path.DirectorySeparatorChar).WrapInQuotes(), executingApplication.WrapInQuotes());
|
||||
}
|
||||
|
||||
public void Execute(ApplicationUpdateCommand message)
|
||||
|
Reference in New Issue
Block a user