Skip to content

Commit

Permalink
fix: update scala-cli.jar path (#22185)
Browse files Browse the repository at this point in the history
update scala-cli.jar path ref per
#21427

seeing some test failure in
Homebrew/homebrew-core#200691

```
Error: Unable to access jarfile /opt/homebrew/Cellar/scala/3.6.2/libexec/bin/scala-cli.jar
```
  • Loading branch information
hamzaremmal authored Dec 11, 2024
2 parents 30b3eb9 + 70cc1a1 commit 91063dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/libexec/cli-common-platform
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

SCALA_CLI_CMD_BASH=("\"$JAVACMD\"" "-jar \"$PROG_HOME/bin/scala-cli.jar\"")
SCALA_CLI_CMD_BASH=("\"$JAVACMD\"" "-jar \"$PROG_HOME/libexec/scala-cli.jar\"")
2 changes: 1 addition & 1 deletion dist/libexec/cli-common-platform.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

@rem we need to escape % in the java command path, for some reason this doesnt work in common.bat
set "_JAVACMD=!_JAVACMD:%%=%%%%!"
set SCALA_CLI_CMD_WIN="%_JAVACMD%" "-jar" "%_PROG_HOME%\bin\scala-cli.jar"
set SCALA_CLI_CMD_WIN="%_JAVACMD%" "-jar" "%_PROG_HOME%\libexec\scala-cli.jar"

0 comments on commit 91063dd

Please sign in to comment.