diff --git a/Scripts/Sign.ps1 b/Scripts/Sign.ps1 index 658bad2a..fd299196 100644 --- a/Scripts/Sign.ps1 +++ b/Scripts/Sign.ps1 @@ -1,7 +1,7 @@ cls # Sign all scripts in folder recursively by a self-signed certificate $CertName = "Sophia Project" -$FolderPath = "D:\Sophia-Script-for-Windows\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