Skip to content

Commit

Permalink
bugfix: Set Path instead of PATH on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Apr 30, 2024
1 parent 28faf1c commit edbe6c3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ object JdkSources {
val sep = if (Properties.isWin) ";" else ":"
s"$javaBin$sep$oldPath"
}
val variableName = if (Properties.isWin) "Path" else "PATH"
Map(
"JAVA_HOME" -> javaHome.toString(),
"PATH" -> newPath
variableName -> newPath
)
}
.getOrElse(Map.empty)
Expand Down

0 comments on commit edbe6c3

Please sign in to comment.