From cbb68eecb00bd2355b989343f0e2131a1fe4e3da Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 26 Jul 2024 14:43:12 +0200 Subject: [PATCH] Store installer drive as env variable --- winiso/winfs/Scripts/Startup.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winiso/winfs/Scripts/Startup.ps1 b/winiso/winfs/Scripts/Startup.ps1 index f6311d7c..7d641edd 100644 --- a/winiso/winfs/Scripts/Startup.ps1 +++ b/winiso/winfs/Scripts/Startup.ps1 @@ -1,3 +1,3 @@ $drives = & wmic volume get "DriveLetter,Label"; -$drive = $($($drives | Select-String -Pattern "winiso-valhalla") -split "\s+")[0]; -Set-Location (Join-Path $drive $env:LOCAL_PROJECT_PATH) +$env:INSTALLER_DRIVE = $($($drives | Select-String -Pattern "winiso-valhalla") -split "\s+")[0]; +Set-Location (Join-Path $env:INSTALLER_DRIVE $env:LOCAL_PROJECT_PATH)