Skip to content

Commit b035dee

Browse files
authored
Switched order of check
The check for 64-bit uses language that assumes the OS is Windows 10
1 parent 8b5abbe commit b035dee

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

windows-installer/idt-win-installer.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
# Installs IBM Developer Bluemix CLI plugin and all dependencies.
33
# VERSION="0.8"
44

5-
# Check for 64-bit Platform - Dev and Helm do not have 32-bit versions.
6-
if ([Environment]::Is64BitProcess -ne [Environment]::Is64BitOperatingSystem)
5+
# Check for Windows 10
6+
if ([System.Environment]::OSVersion.Version.Major -ne 10)
77
{
8-
echo "This installer requires 64-bit Windows."
8+
echo "This installer requires Windows 10."
99
exit
1010
}
1111

12-
# Check for Windows 10
13-
if ([System.Environment]::OSVersion.Version.Major -ne 10)
12+
# Check for 64-bit Platform - Dev and Helm do not have 32-bit versions.
13+
if ([Environment]::Is64BitProcess -ne [Environment]::Is64BitOperatingSystem)
1414
{
15-
echo "This installer requires Windows 10."
15+
echo "This installer requires 64-bit Windows."
1616
exit
1717
}
1818

0 commit comments

Comments
 (0)