Skip to content

Commit

Permalink
Change run script to find the nar a different way.
Browse files Browse the repository at this point in the history
  • Loading branch information
achew22 committed May 7, 2016
1 parent 176838f commit f85bf7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion typescript/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ set -e

# There is probably a better way to do this, but this turns out to be a fiarly
# robust way to target the .nar execuatable.
NAR="./bazel-out/local_darwin-fastbuild/bin/typescript/run.runfiles/external/typescript_*/file/typescript-*.nar"
NAR="$(find . | grep "typescript-.*x64\.nar" | head -n 1)"
chmod +x $NAR

# There is a race condition when compiling multiple ts_binaries. mkdir is
# atomic and has an error code when it can't make a file (making it a perfect
Expand Down

0 comments on commit f85bf7b

Please sign in to comment.