]> git.ardis.lu - ArdisUtilities/commitdiff
Use cross-platform temp folder retrieval
authorArdis Lu <ardisglu@gmail.com>
Mon, 27 May 2024 21:44:10 +0000 (14:44 -0700)
committerArdis Lu <ardisglu@gmail.com>
Mon, 27 May 2024 21:44:10 +0000 (14:44 -0700)
install.ps1

index 5c2e1e83ed2461e6fda87db93fe32b0d32b26cbd..880a1a4c4ba6ae7dec2e5f6cf5390fdac3f267ed 100644 (file)
@@ -49,7 +49,7 @@ function Install-ArdisUtilities {
 
   begin {
     # Create a temporary working folder
-    $tempFolder = Join-Path $Env:Temp $(New-Guid)
+    $tempFolder = Join-Path $([IO.Path]::GetTempPath()) $(New-Guid)
     New-Item -Type Directory -Path $tempFolder | Out-Null
   }
 
This page took 0.037591 seconds and 4 git commands to generate.