fix: disable dotnet greeting msg with DOTNET_NOLOGO=true (#573)
This commit is contained in:
@@ -676,6 +676,10 @@ pub fn run_dotnet_upgrade(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
.run_type()
|
.run_type()
|
||||||
.execute(&dotnet)
|
.execute(&dotnet)
|
||||||
.args(["tool", "list", "--global"])
|
.args(["tool", "list", "--global"])
|
||||||
|
// dotnet will print a greeting message on its first run, from this question:
|
||||||
|
// https://stackoverflow.com/q/70493706/14092446
|
||||||
|
// Setting `DOTNET_NOLOGO` to `true` should disable it
|
||||||
|
.env("DOTNET_NOLOGO", "true")
|
||||||
.output_checked_utf8()
|
.output_checked_utf8()
|
||||||
{
|
{
|
||||||
Ok(output) => output,
|
Ok(output) => output,
|
||||||
|
|||||||
Reference in New Issue
Block a user