mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-18 16:29:41 +02:00
Align environment variable setting in ProcessProvider with upstream
Co-authored-by: Qstick <376117+Qstick@users.noreply.github.com> Closes #5617 (cherry picked from commit 8f482c534f15c14a9b3097313a4f5e9273549d88)
This commit is contained in:
parent
51901dbb37
commit
06a214e901
@ -131,14 +131,7 @@ public Process Start(string path, string args = null, StringDictionary environme
|
||||
var key = environmentVariable.Key.ToString();
|
||||
var value = environmentVariable.Value?.ToString();
|
||||
|
||||
if (startInfo.EnvironmentVariables.ContainsKey(key))
|
||||
{
|
||||
startInfo.EnvironmentVariables[key] = value;
|
||||
}
|
||||
else
|
||||
{
|
||||
startInfo.EnvironmentVariables.Add(key, value);
|
||||
}
|
||||
startInfo.EnvironmentVariables[key] = value;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user