Force profile selection for Windows installation actions

This commit is contained in:
Manuel Thalmann 2024-09-09 00:04:06 +02:00
parent 34110c377d
commit 1abbd8402f
2 changed files with 5 additions and 1 deletions

View file

@ -164,7 +164,7 @@ $null = New-Module {
$scriptPath = "$PSScriptRoot/../../Common/Scripts/config.fish";
if ($env:CONFIG_NAME) {
if ($env:CONFIG_NAME -or ($Script -eq "getProfiles")) {
$output = & {
if (-not $IsWindows) {
$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;
}
}