Skip to content

Commit

Permalink
Fix piping to null on powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
Perry committed Sep 7, 2023
1 parent 9ff2994 commit 03496a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CommandExec/CommandUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static bool CommandExists(string command)
}
else
{
cmd = Command.Shell($"Get-Command -Name {command} -ErrorAction SilentlyContinue | $null")
cmd = Command.Shell($"Get-Command -Name {command} -ErrorAction SilentlyContinue > $null")
.RedirectStdOut()
.RedirectStdErr()
.RedirectStdIn();
Expand Down

0 comments on commit 03496a9

Please sign in to comment.