From 4c2f96d5469e1ff1357831c28ebb90ce0013c534 Mon Sep 17 00:00:00 2001 From: hugoalh <32359235+hugoalh@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:27:43 +0800 Subject: [PATCH] 20220920D --- hugoalh.GitHubActionsToolkit/module/problem-matcher.psm1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hugoalh.GitHubActionsToolkit/module/problem-matcher.psm1 b/hugoalh.GitHubActionsToolkit/module/problem-matcher.psm1 index 5953757..200845d 100644 --- a/hugoalh.GitHubActionsToolkit/module/problem-matcher.psm1 +++ b/hugoalh.GitHubActionsToolkit/module/problem-matcher.psm1 @@ -28,9 +28,9 @@ Function Add-ProblemMatcher { Process { ($PSCmdlet.ParameterSetName -ieq 'LiteralPath') ? $LiteralPath : ( Resolve-Path -Path $Path | - Select-Object -ExpandProperty 'Path' | - ForEach-Object -Process { Write-GitHubActionsCommand -Command 'add-matcher' -Value ($_ -ireplace '^\.[\\/]', '' -ireplace '\\', '/') } - ) + Select-Object -ExpandProperty 'Path' + ) | + ForEach-Object -Process { Write-GitHubActionsCommand -Command 'add-matcher' -Value ($_ -ireplace '^\.[\\/]', '' -ireplace '\\', '/') } } } <#