Skip to content

Commit 6a213a6

Browse files
authored
Merge pull request #14 from rfw/master
Change to the runfiles dir before running the binary, so we have access to data files
2 parents bd14a46 + d863c43 commit 6a213a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node/internal/node_binary.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export NODE_PATH={node_paths}
1515
# Run it but wrap all calls to paths in a call to find. The call to find will
1616
# search recursively through the filesystem to find the appropriate runfiles
1717
# directory if that is necessary.
18-
exec $(find . | grep -m 1 "{node_bin}") $(find . | grep -m 1 "{script_path}") $@
18+
cd $(find . | grep -m 1 "{node_bin}" | sed 's|{node_bin}$||') && exec "{node_bin}" "{script_path}" $@
1919
"""
2020

2121

0 commit comments

Comments
 (0)