Skip to content

Commit

Permalink
Add envvar if not windows
Browse files Browse the repository at this point in the history
  • Loading branch information
SubZero0 committed Jun 19, 2020
1 parent b60690b commit 7f40946
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DiscordNet/Modules/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,10 @@ private void Pack(string project, string suffix, string outputDir, string workin
UseShellExecute = false,
CreateNoWindow = false,
RedirectStandardOutput = true,
RedirectStandardError = true
RedirectStandardError = false
};
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
procStartInfo.EnvironmentVariables.Add("DOTNET_CLI_HOME", "/tmp");
var pr = new Process
{
StartInfo = procStartInfo
Expand Down

0 comments on commit 7f40946

Please sign in to comment.