From ab4ce633dbc5bc92f4d1969a2c9d2b1554ba720b Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 9 Sep 2024 00:04:06 +0200 Subject: [PATCH] Force profile selection for Windows installation actions --- scripts/Common/Scripts/Config.ps1 | 2 +- scripts/Common/Scripts/Operations.ps1 | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/Common/Scripts/Config.ps1 b/scripts/Common/Scripts/Config.ps1 index f51caae7..99ac893c 100644 --- a/scripts/Common/Scripts/Config.ps1 +++ b/scripts/Common/Scripts/Config.ps1 @@ -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"); diff --git a/scripts/Common/Scripts/Operations.ps1 b/scripts/Common/Scripts/Operations.ps1 index dd273709..eb83481e 100644 --- a/scripts/Common/Scripts/Operations.ps1 +++ b/scripts/Common/Scripts/Operations.ps1 @@ -259,6 +259,10 @@ $null = New-Module { } }; + if (-not $env:CONFIG_NAME) { + Show-ProfileNamePrompt; + } + $initialized = $true; } }