Fixed: Updater being passed invalid path in some cases

This commit is contained in:
Mark McDowall 2014-06-05 15:36:01 -07:00
commit 5d5b12d80e
3 changed files with 3 additions and 9 deletions

View file

@ -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)