Skip to content

Commit

Permalink
Better Safe than sorry
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisdeguet committed Oct 17, 2024
1 parent 2e809e4 commit 5208d8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scriptsharp/ScriptSharp/Utils/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,10 @@ private static void RemoveAllEnv()

public static void SetEnvVariable(string name, string value)
{
Environment.SetEnvironmentVariable(name, value);
Environment.SetEnvironmentVariable(name, value, EnvironmentVariableTarget.User);
Environment.SetEnvironmentVariable(name, value, EnvironmentVariableTarget.Process);
Environment.SetEnvironmentVariable(name, value, EnvironmentVariableTarget.Machine);
}

private static void DeleteThis(string path)
Expand Down

0 comments on commit 5208d8e

Please sign in to comment.