modifying the dotnet version check because default might be higher than 6
This commit is contained in:
Родитель
cf794207d6
Коммит
e1f16e0a8c
|
@ -92,9 +92,9 @@ if(!($KeyVault -match "^[a-zA-Z][a-z0-9-]+$")) {
|
|||
|
||||
# check if dotnet 6 is installed
|
||||
|
||||
$dotnetversion = dotnet --version
|
||||
$dotnetversion = dotnet --list-sdks
|
||||
|
||||
if(!$dotnetversion.StartsWith('6.')) {
|
||||
if(!$dotnetversion -like "*6.*") {
|
||||
Throw "🛑 Dotnet 6 not installed. Install dotnet6 and re-run the script."
|
||||
Exit
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче