From 704e33847ef8afbe6962062891f594127624ae1d Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Fri, 12 Aug 2022 22:45:38 +0300 Subject: [PATCH] Update Sign.ps1 --- Scripts/Sign.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Sign.ps1 b/Scripts/Sign.ps1 index fb9800bf..0c4a2f30 100644 --- a/Scripts/Sign.ps1 +++ b/Scripts/Sign.ps1 @@ -42,7 +42,7 @@ $codeCertificate = Get-ChildItem -Path Cert:\LocalMachine\My | Where-Object -Fil # Adding a timestamp ensures that your code will not expire when the signing certificate expires # -Include *.ps1, *.psm1, *.psd1 is obvious, but it's slow -Get-ChildItem -Path $FolderPath -Recurse -File | Where-Object -FilterScript {$_.Extension -in $ExtensionsToSearchIn} +(Get-ChildItem -Path $FolderPath -Recurse -File | Where-Object -FilterScript {$_.Extension -in $ExtensionsToSearchIn}).FullName Get-ChildItem -Path $FolderPath -Recurse -File | Where-Object -FilterScript {$_.Extension -in $ExtensionsToSearchIn} | ForEach-Object -Process { $Parameters = @{