Tweaking env
This commit is contained in:
parent
868ea48c21
commit
85d6434afe
|
@ -9,8 +9,8 @@ class DotnetSupport
|
|||
}
|
||||
}
|
||||
|
||||
task('dotnet_set_env_path', ['always' => true], function() {
|
||||
dotnet_set_env_path();
|
||||
task('dotnet_set_env', ['always' => true], function() {
|
||||
dotnet_set_env();
|
||||
});
|
||||
|
||||
task('dotnet_install', function() {
|
||||
|
@ -47,8 +47,10 @@ function dotnet_install(string $version)
|
|||
shell("\"$install_file_path\" --channel $channel");
|
||||
}
|
||||
|
||||
function dotnet_set_env_path()
|
||||
function dotnet_set_env()
|
||||
{
|
||||
putenv("DOTNET_CLI_TELEMETRY_OPTOUT=1");
|
||||
|
||||
$dotnet_path = dotnet_get_path();
|
||||
if(is_win())
|
||||
putenv("PATH=$dotnet_path;".getenv('PATH'));
|
||||
|
|
Loading…
Reference in New Issue