Store installer drive as env variable

This commit is contained in:
Manuel Thalmann 2024-07-26 14:43:12 +02:00
parent 4d6e916750
commit cbb68eecb0

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)