From 4c372f8b66106459b913cb4566512cf30c6a8bee Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Sun, 12 May 2024 19:15:08 -0700 Subject: [PATCH] Node Bootstrap: Cast OS version to int so compat code works (#83190) This wasn't working for me because `OSMajor` was set to a string, not a number, so it failed the if check. Making this change made it work --- tools/bootstrap/node_.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bootstrap/node_.ps1 b/tools/bootstrap/node_.ps1 index d4df216773b8..8e3c96517f94 100644 --- a/tools/bootstrap/node_.ps1 +++ b/tools/bootstrap/node_.ps1 @@ -32,7 +32,7 @@ if ($Env:TG_BOOTSTRAP_CACHE) { } # Get OS version -$OSMajor = (Get-WmiObject -Class Win32_OperatingSystem).Version.Split(".")[0] +[int]$OSMajor = (Get-WmiObject -Class Win32_OperatingSystem).Version.Split(".")[0] # Set Node version based on OS version if ($OSMajor -lt 10) {