Skip to content

Commit ca0faf8

Browse files
author
Karl Bishop
authored
Merge pull request #29 from BJClarke/patch-4
Added check for Windows 10 Reviewed and accepted
2 parents 3f2be44 + b035dee commit ca0faf8

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

windows-installer/idt-win-installer.ps1

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

5+
# Check for Windows 10
6+
if ([System.Environment]::OSVersion.Version.Major -ne 10)
7+
{
8+
echo "This installer requires Windows 10."
9+
exit
10+
}
11+
512
# Check for 64-bit Platform - Dev and Helm do not have 32-bit versions.
613
if ([Environment]::Is64BitProcess -ne [Environment]::Is64BitOperatingSystem)
714
{
@@ -119,4 +126,4 @@ if( $EXT_PLUGINS.contains("sdk-gen")) {
119126
$restart = Read-Host "A system restart is required. Would you like to restart now (y/n)? (default is n)"
120127
if($restart -eq "y" -Or $restart -eq "yes") {
121128
Restart-Computer
122-
}
129+
}

0 commit comments

Comments
 (0)