summaryrefslogtreecommitdiff
path: root/_site/get.ps1
diff options
context:
space:
mode:
authorDESKTOP-V026VQF\Home2023-03-14 14:27:08 +0000
committerDESKTOP-V026VQF\Home2023-03-14 14:27:08 +0000
commit53950f18766ca6faf7ffdf15de7409ab91eeb160 (patch)
tree1d613364864c07ba0f531d89d05b2a2e76e88d51 /_site/get.ps1
parente3a22f7c7ad31e9b3a5d93095930a615f7b4972f (diff)
downloadmassgrave.dev-53950f18766ca6faf7ffdf15de7409ab91eeb160.zip
Improve temp files deletion
Diffstat (limited to '_site/get.ps1')
-rw-r--r--_site/get.ps15
1 files changed, 3 insertions, 2 deletions
diff --git a/_site/get.ps1 b/_site/get.ps1
index 1380498..a3f995a 100644
--- a/_site/get.ps1
+++ b/_site/get.ps1
@@ -22,5 +22,6 @@ $content = $prefix + $response
Set-Content -Path $FilePath -Value $content
Start-Process $FilePath $ScriptArgs -Wait
-$item = Get-Item -LiteralPath $FilePath
-$item.Delete() \ No newline at end of file
+
+$FilePaths = @("$env:TEMP\MAS*.cmd", "$env:SystemRoot\Temp\MAS*.cmd")
+foreach ($FilePath in $FilePaths) { Get-Item $FilePath | Remove-Item }