Skip to content

Commit

Permalink
Remove -d32/-d64 logic from powershell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePrez committed Feb 15, 2023
1 parent 48a2df4 commit 8c75f13
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,13 +375,7 @@ Function Start-WildFly-Process {

# Returns java -version output for JDK defined by java opts
Function Get-Java-Version ($javaOpts) {
if ($javaOpts -match '-d64') {
$opt_version = '-d64'
} elseif ($javaOpts -match '-d32') {
$opt_version = '-d32'
}

$result = & $JAVA $opt_version -version 2>&1
$result = & $JAVA -version 2>&1
if ($LASTEXITCODE -eq 1) {
$result = & $JAVA -version 2>&1
}
Expand Down

0 comments on commit 8c75f13

Please sign in to comment.