Pipe bazel() note text to stderr.

This allows subshell-ing bazel, e.g. bazel build $(bazel query //...)

Test: . build/envsetup.sh; bazel build $(bazel query <expression>)
Change-Id: If28b63769032b61e150422cb5b9b4e55c14cd13d
This commit is contained in:
Jingwen Chen 2020-12-14 10:28:33 -05:00
parent 33571ac8dd
commit c8b5e196ce
1 changed files with 2 additions and 2 deletions

View File

@ -330,8 +330,8 @@ function bazel()
fi
if which bazel &>/dev/null; then
echo "NOTE: bazel() function sourced from envsetup.sh is being used instead of $(which bazel)"
echo
>&2 echo "NOTE: bazel() function sourced from envsetup.sh is being used instead of $(which bazel)"
>&2 echo
fi
"$T/tools/bazel" "$@"