Skip to content

Commit

Permalink
Use realpath of script path
Browse files Browse the repository at this point in the history
  • Loading branch information
marzipankaiser authored Sep 3, 2024
1 parent 7842bd1 commit 8aeecb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion effekt/jvm/src/main/scala/effekt/Runner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ trait Runner[Executable] {
case OS.POSIX =>
val computeScriptDir =
"""# Determine the directory of the script
|SCRIPT_DIR=$(dirname "$0")
|SCRIPT_DIR=$(dirname "$(realpath "$0")")
|""".stripMargin
IO.createFile(name, s"#!/bin/sh\n${computeScriptDir}\n${command.mkString(" ")} \"$$@\"", true)
name
Expand Down

0 comments on commit 8aeecb6

Please sign in to comment.