Skip to content

Commit

Permalink
No need to remove the running temp file
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurbarton committed Oct 2, 2018
1 parent a9faaa1 commit 4f9df58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ This parameter has been deprecated and isn't used anymore. The scripts aren't sa

Flag to set the key as exportable. `true` == exportable; `false` == not exportable. By default is set to `true`.

##### `wildcard`

Flag to set the MachineKeySet flag in import, used for importing wildcard certificates. Defaults to `false`

## Reference

### Definition
Expand Down
2 changes: 0 additions & 2 deletions templates/import.ps1.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,3 @@ foreach($cert in $pfx) {
}

$store.close()

Remove-Item $MyINvocation.InvocationName
3 changes: 0 additions & 3 deletions templates/inspect.ps1.erb
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,11 @@ if (($pfx -ne $null) -and ($installedCerts -ne $null) -and ($intermediateCerts -
# When $pfx.Count is $null, $pfx is an instance of X509Certificate2, not X509Certificate2Collection, so
# ensure that only a single certificate has been installed.
if (($pfx.Count -eq $null) -and ($installedCertCount -eq 1) -and ($installedIntermediateCount -eq 0)) {
Remove-Item $MyINvocation.InvocationName
exit 1
}
elseif (($installedCertCount + $installedIntermediateCount) -eq $pfx.Count) {
Remove-Item $MyINvocation.InvocationName
exit 1
}
}

Remove-Item $MyINvocation.InvocationName
exit 0

0 comments on commit 4f9df58

Please sign in to comment.