Skip to content

Commit 2c074d2

Browse files
committed
Do not remove scripts as they are not stored on disk
This removes attempts to delete ps1 scripts since they are no longer stored on disk as part of the change in 0f335f0.
1 parent ef1adbc commit 2c074d2

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

templates/import.ps1.erb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,3 @@ foreach($cert in $pfx) {
3535
}
3636

3737
$store.close()
38-
39-
Remove-Item $MyINvocation.InvocationName

templates/inspect.ps1.erb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,11 @@ if (($pfx -ne $null) -and ($installedCerts -ne $null) -and ($intermediateCerts -
4848
# When $pfx.Count is $null, $pfx is an instance of X509Certificate2, not X509Certificate2Collection, so
4949
# ensure that only a single certificate has been installed.
5050
if (($pfx.Count -eq $null) -and ($installedCertCount -eq 1) -and ($installedIntermediateCount -eq 0)) {
51-
Remove-Item $MyINvocation.InvocationName
5251
exit 1
5352
}
5453
elseif (($installedCertCount + $installedIntermediateCount) -eq $pfx.Count) {
55-
Remove-Item $MyINvocation.InvocationName
5654
exit 1
5755
}
5856
}
5957

60-
Remove-Item $MyINvocation.InvocationName
6158
exit 0

0 commit comments

Comments
 (0)