Skip to content

Commit

Permalink
fix(shim): Avoid unexpected output of list subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis-yeung committed Oct 9, 2023
1 parent 3a3f41c commit c9754a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libexec/scoop-shim.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#
# To list all shims or matching shims, use the 'list' subcommand:
#
# scoop shim list [<shim_name>/<pattern>...]
# scoop shim list [<shim_name>/<regex_pattern>...]
#
# To show a shim's information, use the 'info' subcommand:
#
Expand Down Expand Up @@ -144,7 +144,7 @@ switch ($SubCommand) {
$other | ForEach-Object {
try {
$pattern = $_
[Regex]::New($pattern)
[void][Regex]::New($pattern)
} catch {
Write-Host "ERROR: Invalid pattern: " -ForegroundColor Red -NoNewline
Write-Host $pattern -ForegroundColor Magenta
Expand Down

0 comments on commit c9754a3

Please sign in to comment.