Skip to content

Commit 9ff7975

Browse files
committed
JBDS-4048 OpenJDK detection stuck
Fix adds to the powershell execution: * -Noneinteractive option; * exit(0) call in the end of the script
1 parent b1ec65f commit 9ff7975

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

browser/model/jdk-install.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@ class JdkInstall extends InstallableItem {
6666

6767
let data = [
6868
"$vbox = Get-WmiObject Win32_Product | where {$_.Name -like '*OpenJDK*'};",
69-
"echo $vbox.IdentifyingNumber"
69+
"echo $vbox.IdentifyingNumber;",
70+
"[Environment]::Exit(0);"
7071
].join('\r\n');
7172
let args = [
73+
'-NonInteractive',
7274
'-ExecutionPolicy',
7375
'ByPass',
7476
'-File',

0 commit comments

Comments
 (0)