mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
strip fully qualified bazel tools path
tentative fix for https://forums.ankiweb.net/t/anki-2-1-50-beta-3/17501/17
This commit is contained in:
parent
1871b57663
commit
ac4a1cd8e0
1 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,7 @@ fi
|
||||||
# genrule() invocations like //:buildinfo, as they call 'bazel run python', which
|
# genrule() invocations like //:buildinfo, as they call 'bazel run python', which
|
||||||
# fails as BAZEL_REAL is not passed to the child process. Work around it by removing
|
# fails as BAZEL_REAL is not passed to the child process. Work around it by removing
|
||||||
# the tools folder from the path.
|
# the tools folder from the path.
|
||||||
export PATH=$(echo "$PATH" | sed 's@^.*/tools:@@')
|
toolsPath=$(dirname $0)
|
||||||
|
export PATH=$(echo "$PATH" | sed "s@${toolsPath}:@@")
|
||||||
|
|
||||||
exec $BAZEL_REAL $extra_args "$@"
|
exec $BAZEL_REAL $extra_args "$@"
|
||||||
|
|
Loading…
Reference in a new issue