From 39852d0f32c6469c302a64c68de416e1d2c59038 Mon Sep 17 00:00:00 2001 From: Florian Hopfner <33372796+FH-Inway@users.noreply.github.com> Date: Sun, 6 Oct 2024 16:42:36 +0000 Subject: [PATCH] fix temporary path for Unix environments Apparently, on Unix, there is no Temp environment variable. --- dev/launch.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev/launch.ps1 b/dev/launch.ps1 index 121e286..c142b93 100644 --- a/dev/launch.ps1 +++ b/dev/launch.ps1 @@ -45,11 +45,13 @@ function New-TemporaryPath { Write-Host "Creating new temporary path: $Prefix" + $temp = [System.IO.Path]::GetTempPath() + # Remove Previous Temporary Paths - Remove-Item -Path "$env:Temp\$Prefix*" -Force -Recurse -ErrorAction SilentlyContinue + Remove-Item -Path "$temp\$Prefix*" -Force -Recurse -ErrorAction SilentlyContinue # Create New Temporary Path - $item = New-Item -Path $env:TEMP -Name "$($Prefix)_$(Get-Random)" -ItemType Directory + $item = New-Item -Path $temp -Name "$($Prefix)_$(Get-Random)" -ItemType Directory $item.FullName }