From 7559e0f9a207c61e86a3a34278825a55f54533ea Mon Sep 17 00:00:00 2001 From: John Burns Date: Tue, 9 Apr 2019 13:02:01 -0500 Subject: [PATCH] No need to remove the running temp file --- templates/inspect.ps1.erb | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/inspect.ps1.erb b/templates/inspect.ps1.erb index e9377cf..49ced97 100644 --- a/templates/inspect.ps1.erb +++ b/templates/inspect.ps1.erb @@ -1,7 +1,6 @@ $is_already_installed = Get-ChildItem -Path cert:\<%= @root_store %>\<%= @store_dir %> -Recurse | select thumbprint | where { $_.thumbprint -eq '<%= @thumbprint %>' } if ([string]::IsNullOrEmpty($is_already_installed) -eq $False) { - Remove-Item $MyINvocation.InvocationName exit 1 }