Skip to content

Commit b9ed1ce

Browse files
authored
Update Sign.ps1
1 parent 8e752de commit b9ed1ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Scripts/Sign.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cls
22
# Sign all scripts in folder recursively by a self-signed certificate
33
$CertName = "Sophia Project"
4-
$FolderPath = "D:\Sophia-Script-for-Windows\Sophia Script"
4+
$FolderPath = "$PSSCriptRoot\Sophia Script"
55
$ExtensionsToSearchIn = @(".ps1", ".psm1", ".psd1")
66
Get-ChildItem -Path Cert:\LocalMachine\My, Cert:\CurrentUser\My | Where-Object -FilterScript {$_.Subject -eq "CN=$CertName"} | Remove-Item
77

0 commit comments

Comments
 (0)