diff --git a/_site/get.ps1 b/_site/get.ps1 index 6915aab..60b61a5 100644 --- a/_site/get.ps1 +++ b/_site/get.ps1 @@ -12,7 +12,8 @@ try { Return } -if (Test-Path -LiteralPath $FilePath) { +if (Test-Path $FilePath) { Start-Process $FilePath -Wait - Remove-Item -LiteralPath $FilePath -Force + $item = Get-Item -LiteralPath $FilePath + $item.Delete() }