From 30bd8d806e1e48a1b2ad699daf7ffe278e9670dc Mon Sep 17 00:00:00 2001 From: Ondrej Samohel Date: Thu, 5 Jan 2023 16:06:13 +0100 Subject: [PATCH] :bug: fix cosmetic issues --- tools/create_env.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/create_env.ps1 b/tools/create_env.ps1 index cdb97d4942..75cba3f65e 100644 --- a/tools/create_env.ps1 +++ b/tools/create_env.ps1 @@ -19,7 +19,7 @@ PS> .\create_env.ps1 --verbose #> $arguments=$ARGS -$poetry_verbosity="" +$poetry_verbosity=$null if($arguments -eq "--verbose") { $poetry_verbosity="-vvv" } @@ -101,11 +101,11 @@ print('{0}.{1}'.format(sys.version_info[0], sys.version_info[1])) Exit-WithCode 1 } # We are supporting python 3.7 only - if (($matches[1] -lt 3) -or ($matches[2] -lt 7)) { + if (([int]$matches[1] -lt 3) -or ([int]$matches[2] -lt 7)) { Write-Color -Text "FAILED ", "Version ", "[", $p ,"]", "is old and unsupported" -Color Red, Yellow, Cyan, White, Cyan, Yellow Set-Location -Path $current_dir Exit-WithCode 1 - } elseif (($matches[1] -eq 3) -and ($matches[2] -gt 7)) { + } elseif (([int]$matches[1] -eq 3) -and ([int]$matches[2] -gt 7)) { Write-Color -Text "WARNING Version ", "[", $p, "]", " is unsupported, use at your own risk." -Color Yellow, Cyan, White, Cyan, Yellow Write-Color -Text "*** ", "OpenPype supports only Python 3.7" -Color Yellow, White } else {