Skip to content

Commit

Permalink
fix: disable dotnet greeting msg with DOTNET_NOLOGO=true (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC authored Oct 12, 2023
1 parent 18e2d3e commit 60e7aa8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/steps/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,10 @@ pub fn run_dotnet_upgrade(ctx: &ExecutionContext) -> Result<()> {
.run_type()
.execute(&dotnet)
.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()
{
Ok(output) => output,
Expand Down

0 comments on commit 60e7aa8

Please sign in to comment.