Skip to content

Commit

Permalink
Fixed: custom script error when importing some downloads
Browse files Browse the repository at this point in the history
Co-authored-by: Qstick <376117+Qstick@users.noreply.github.com>

(cherry picked from commit 8f482c534f15c14a9b3097313a4f5e9273549d88)

Closes #2457
  • Loading branch information
mynameisbogdan committed May 7, 2023
1 parent a2832cf commit e9ada0b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/NzbDrone.Common/Processes/ProcessProvider.cs
Expand Up @@ -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)
{
Expand Down

0 comments on commit e9ada0b

Please sign in to comment.