From a71e142fbcda61fb843ea98356af6de4ce247cc4 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RBH716R\\Admin" Date: Wed, 27 Jul 2022 22:46:09 +0530 Subject: [PATCH] Fix accent character issue in Path --- _site/get.ps1 | 5 +++-- 1 file 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() }