Store installer drive as env variable

This commit is contained in:
Manuel Thalmann 2024-07-26 14:43:12 +02:00
parent 81a3e10d65
commit bd0b61f8ed

View file

@ -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)