File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -113,12 +113,12 @@ steps:
113113 - ${{ if parameters.Include }} :
114114 - powershell : |
115115 if ($env:EXCLUDE) {
116- $files = (dir $env:INCLUDE -Exclude $env:EXCLUDE -File)
116+ $files = (dir ( $env:INCLUDE -split ';').Trim() - Exclude ( $env:EXCLUDE -split ';').Trim() -File)
117117 } else {
118- $files = (dir $env:INCLUDE -File)
118+ $files = (dir ( $env:INCLUDE -split ';').Trim() -File)
119119 }
120120 if ($env:FILTER) {
121- ($env:FILTER -split ';') -join "`n" | Out-File __filelist.txt -Encoding utf8
121+ ($env:FILTER -split ';').Trim() -join "`n" | Out-File __filelist.txt -Encoding utf8
122122 } else {
123123 "*" | Out-File __filelist.txt -Encoding utf8
124124 }
@@ -145,9 +145,9 @@ steps:
145145 - ${{ if parameters.ExtractDir }} :
146146 - powershell : |
147147 if ($env:EXCLUDE) {
148- $files = (dir $env:INCLUDE -Exclude $env:EXCLUDE -File)
148+ $files = (dir ( $env:INCLUDE -split ',').Trim() - Exclude ( $env:EXCLUDE -split ',').Trim() -File)
149149 } else {
150- $files = (dir $env:INCLUDE -File)
150+ $files = (dir ( $env:INCLUDE -split ',').Trim() -File)
151151 }
152152 $c = $files | %{ (Get-AuthenticodeSignature $_).SignerCertificate } | ?{ $_ -ne $null } | select -First 1
153153 if (-not $c) {
You can’t perform that action at this time.
0 commit comments