mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-25 07:12:40 +00:00
Fixed: custom script error when importing some downloads
Co-authored-by: Qstick <376117+Qstick@users.noreply.github.com> (cherry picked from commit 8f482c534f15c14a9b3097313a4f5e9273549d88) Closes #3627
This commit is contained in:
parent
46b5e9b036
commit
7c3871441e
1 changed files with 1 additions and 8 deletions
|
@ -131,15 +131,8 @@ public Process Start(string path, string args = null, StringDictionary environme
|
||||||
var key = environmentVariable.Key.ToString();
|
var key = environmentVariable.Key.ToString();
|
||||||
var value = environmentVariable.Value?.ToString();
|
var value = environmentVariable.Value?.ToString();
|
||||||
|
|
||||||
if (startInfo.EnvironmentVariables.ContainsKey(key))
|
|
||||||
{
|
|
||||||
startInfo.EnvironmentVariables[key] = value;
|
startInfo.EnvironmentVariables[key] = value;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
startInfo.EnvironmentVariables.Add(key, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
if (environmentVariable.Value == null)
|
if (environmentVariable.Value == null)
|
||||||
|
|
Loading…
Reference in a new issue