From 30df0b7379f7fdbbe548b6dfde48cdb1f3fb0319 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Sat, 13 Aug 2022 00:55:39 +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 387daf68..2ab4bb84 100644 --- a/Scripts/Sign.ps1 +++ b/Scripts/Sign.ps1 @@ -1,6 +1,6 @@ # Sign all scripts in folder recursively by a self-signed certificate $CertName = "Sophia Project" -$FolderPath = "Sophia Script" +$FolderPath = "$PSSCriptRoot\Sophia Script" $ExtensionsToSearchIn = @(".ps1", ".psm1", ".psd1") # Get-ChildItem -Path Cert:\LocalMachine\My, Cert:\CurrentUser\My | Where-Object -FilterScript {$_.Subject -eq "CN=$CertName"} | Remove-Item