Skip to content

Commit 5366b94

Browse files
Only use architecture of first CPU in Windows (#346)
1 parent 092f105 commit 5366b94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/main/kotlin/com/github/gradle/node/util/PlatformHelper.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ fun main(args: Array<String>) {
9696
val osType = parseOsType(osName)
9797
val uname = {
9898
val args = if (osType == OsType.WINDOWS) {
99-
listOf("powershell", "-NoProfile", "-Command", "(Get-WmiObject Win32_Processor).Architecture")
99+
listOf("powershell", "-NoProfile", "-Command", "(Get-WmiObject Win32_Processor | Select-Object -First 1).Architecture")
100100
} else {
101101
listOf("uname", "-m")
102102
}

0 commit comments

Comments
 (0)