Skip to content

Commit

Permalink
Fix obsidianc so it works with any Scala version (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReedOei committed Aug 6, 2020
1 parent 313f89f commit 5dfb635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/obsidianc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ bin_dir="$(cd "$(dirname $BASH_SOURCE)"; pwd)"
root_dir="$bin_dir/.."
export OBSIDIAN_COMPILER_DIR="$root_dir"

obsidian_jar="$root_dir/target/scala-2.12/obsidianc.jar"
obsidian_jar="$(find "$root_dir/target" -name "obsidianc.jar" | head -n1)"

if [[ ! -e "$obsidian_jar" ]]; then
if [[ -z "$obsidian_jar" ]]; then
(
cd "$root_dir"
sbt assembly
Expand Down

0 comments on commit 5dfb635

Please sign in to comment.