From 006e08f536c4a576c438ea59f328e69e8c2d1704 Mon Sep 17 00:00:00 2001 From: Jesper Fajers Date: Wed, 20 Mar 2024 10:36:22 +0000 Subject: [PATCH] Update --- src/internal/functions/Assert-AzOpsJqDependency.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/internal/functions/Assert-AzOpsJqDependency.ps1 b/src/internal/functions/Assert-AzOpsJqDependency.ps1 index 643ba7cc..e85e4de6 100644 --- a/src/internal/functions/Assert-AzOpsJqDependency.ps1 +++ b/src/internal/functions/Assert-AzOpsJqDependency.ps1 @@ -19,13 +19,13 @@ process { Write-AzOpsMessage -LogLevel InternalComment -LogString 'Assert-AzOpsJqDependency.Validating' - + $minVersion = New-Object System.Version("1.6") $result = (Invoke-AzOpsNativeCommand -ScriptBlock { jq --version } -IgnoreExitcode) $installed = $result -as [bool] if ($installed) { - [double]$version = ($result).Split("-")[1] - if ($version -ge 1.6) { + $version = New-Object System.Version(($result).Split("-")[1]) + if ($version -ge $minVersion) { Write-AzOpsMessage -LogLevel InternalComment -LogString 'Assert-AzOpsJqDependency.Success' return }