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.
This commit is contained in:
Ethan Atkins 2020-10-24 12:40:25 -07:00
parent fb5961427e
commit d4156d3ed7
1 changed files with 1 additions and 1 deletions

View File

@ -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=("$@")