From ba50689c3e4653a38a29301dd8ed98e10565c65c Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Thu, 20 Jun 2024 12:17:59 +0200 Subject: [PATCH] Moved tmp location --- setupTmp.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setupTmp.ps1 b/setupTmp.ps1 index 4d5c18a..97c0f04 100644 --- a/setupTmp.ps1 +++ b/setupTmp.ps1 @@ -1,10 +1,14 @@ -$tmpPath = Join-Path $env:LOCALAPPDATA "Temp" +$tmpPath = Join-Path $env:LOCALAPPDATA "Temp\Script-setup" function DownloadFiles { param ( [string] $Type ) + if (-not (Test-Path -Path $tmpPath -PathType Container)) { + New-Item -Path $tmpPath -ItemType Directory + } + switch ($Type) { "Labo" { $filesToDownload = @(