From d4156d3ed77a6aa2aded6e7a35ea0b92606b3354 Mon Sep 17 00:00:00 2001 From: Ethan Atkins Date: Sat, 24 Oct 2020 12:40:25 -0700 Subject: [PATCH] Set sbt script when running sbtn There are scenarios where sbt is not on the path and may be invoked as an absolute path from the shell. When this is the case, sbtn will fail to start a server because of the missing sbt on the path. We can fix this by setting the --sbt-script parameter. --- src/universal/bin/sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/universal/bin/sbt b/src/universal/bin/sbt index a2ded2146..d0fac18cd 100755 --- a/src/universal/bin/sbt +++ b/src/universal/bin/sbt @@ -621,7 +621,7 @@ runNativeClient() { unset 'original_args[i]' fi done - execRunner "$sbtn_command" "${original_args[@]}" + execRunner "$sbtn_command" "--sbt-script=$0" "${original_args[@]}" } original_args=("$@")