diff --git a/deployment/Deploy.ps1 b/deployment/Deploy.ps1 index 5c7c9da0..a13d82d9 100644 --- a/deployment/Deploy.ps1 +++ b/deployment/Deploy.ps1 @@ -92,9 +92,9 @@ if(!($KeyVault -match "^[a-zA-Z][a-z0-9-]+$")) { # check if dotnet 6 is installed -$dotnetversion = dotnet --list-sdks +$dotnetversion = dotnet --version -if(!$dotnetversion -like "*6.*") { +if(!$dotnetversion.StartsWith('6.')) { Throw "🛑 Dotnet 6 not installed. Install dotnet6 and re-run the script." Exit }