scripts/serve-docs.sh: ask bazel for the genfiles path
...instead of assuming bazel-genfiles in `pwd`. In this
way, the script will also work with --symlink-prefix=/
set in the rc file.
MOS_MIGRATED_REVID=148894206
@@ -47,7 +47,7 @@ function check {
function build_and_serve {
bazel build //site:jekyll-tree.tar
rm -rf $WORKING_DIR/*
- tar -xf bazel-genfiles/site/jekyll-tree.tar -C $WORKING_DIR
+ tar -xf "$(bazel info bazel-genfiles)/site/jekyll-tree.tar" -C $WORKING_DIR
pkill -9 jekyll || true
