Skip to content

Commit

Permalink
fix(pwsh): silence link output
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Dec 27, 2024
1 parent f1bfc77 commit 2cfef62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shell/link_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestLinkCommand(t *testing.T) {
{
Case: "PWSH",
Shell: PWSH,
Expected: "New-Item -Path \"foo\" -ItemType SymbolicLink -Value \"bar\" -Force",
Expected: "New-Item -Path \"foo\" -ItemType SymbolicLink -Value \"bar\" -Force | Out-Null",
},
{
Case: "CMD",
Expand Down
2 changes: 1 addition & 1 deletion src/shell/pwsh.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (e *Env) pwsh() *Env {
}

func (l *Link) pwsh() *Link {
template := `New-Item -Path {{ formatString .Name }} -ItemType SymbolicLink -Value {{ formatString .Target }} -Force`
template := `New-Item -Path {{ formatString .Name }} -ItemType SymbolicLink -Value {{ formatString .Target }} -Force | Out-Null`
l.template = template
return l
}
Expand Down

0 comments on commit 2cfef62

Please sign in to comment.