Force profile selection for Windows installation actions

This commit is contained in:
Manuel Thalmann 2024-09-09 00:04:06 +02:00
parent 79aafce443
commit 242a6f1e94
2 changed files with 5 additions and 1 deletions

View file

@ -164,7 +164,7 @@ $null = New-Module {
$scriptPath = "$PSScriptRoot/../../Common/Scripts/config.fish"; $scriptPath = "$PSScriptRoot/../../Common/Scripts/config.fish";
if ($env:CONFIG_NAME) { if ($env:CONFIG_NAME -or ($Script -eq "getProfiles")) {
$output = & { $output = & {
if (-not $IsWindows) { if (-not $IsWindows) {
$escapedPath = (fish -c 'string escape $argv' "$scriptPath"); $escapedPath = (fish -c 'string escape $argv' "$scriptPath");

View file

@ -259,6 +259,10 @@ $null = New-Module {
} }
}; };
if (-not $env:CONFIG_NAME) {
Show-ProfileNamePrompt;
}
$initialized = $true; $initialized = $true;
} }
} }