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