summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_site/get.ps15
1 files changed, 3 insertions, 2 deletions
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()
}