diff options
| author | DESKTOP-V026VQF\Home | 2023-03-14 14:27:08 +0000 |
|---|---|---|
| committer | DESKTOP-V026VQF\Home | 2023-03-14 14:27:08 +0000 |
| commit | 53950f18766ca6faf7ffdf15de7409ab91eeb160 (patch) | |
| tree | 1d613364864c07ba0f531d89d05b2a2e76e88d51 /_site/get.ps1 | |
| parent | e3a22f7c7ad31e9b3a5d93095930a615f7b4972f (diff) | |
| download | massgrave.dev-53950f18766ca6faf7ffdf15de7409ab91eeb160.zip | |
Improve temp files deletion
Diffstat (limited to '_site/get.ps1')
| -rw-r--r-- | _site/get.ps1 | 5 |
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 } |
