Pass label of setup disk as variable
This commit is contained in:
parent
cbb68eecb0
commit
2b9558f720
2 changed files with 3 additions and 2 deletions
|
@ -131,6 +131,7 @@ begin
|
|||
$path \
|
||||
"$git[4]\\bin"
|
||||
) \
|
||||
"set SETUP_LABEL=$setupLabel" \
|
||||
"set LOCAL_PROJECT_PATH=$(echo "$localProjectPath" | mkWinPath)" \
|
||||
"set REMOTE_PROJECT_PATH=$(echo "$projectPath" | mkWinPath)" \
|
||||
"echo Loading Drivers..." \
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
$drives = & wmic volume get "DriveLetter,Label";
|
||||
$env:INSTALLER_DRIVE = $($($drives | Select-String -Pattern "winiso-valhalla") -split "\s+")[0];
|
||||
Set-Location (Join-Path $env:INSTALLER_DRIVE $env:LOCAL_PROJECT_PATH)
|
||||
$env:SETUP_DRIVE = $($($drives | Select-String -Pattern "$env:SETUP_LABEL") -split "\s+")[0];
|
||||
Set-Location (Join-Path $env:SETUP_DRIVE $env:LOCAL_PROJECT_PATH)
|
||||
|
|
Loading…
Reference in a new issue