diff options
author | Klaus Aehlig <aehlig@google.com> | 2017-03-01 17:10:42 +0000 |
---|---|---|
committer | Yue Gan <yueg@google.com> | 2017-03-01 17:21:06 +0000 |
commit | 5bd448c47e2714be229154d42157c7390e4583a1 (patch) | |
tree | c18f20a610a8a7aeb315cce8da3fe5bb59584bc1 /scripts/serve-docs.sh | |
parent | 6e2ccb75d7c9e1e9102a0512449381e2fffc57a7 (diff) |
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.
--
Change-Id: I848a2e9791b4b8a8c1d6d0cea1f10117717935bd
Reviewed-on: https://cr.bazel.build/9118
PiperOrigin-RevId: 148894206
MOS_MIGRATED_REVID=148894206
Diffstat (limited to 'scripts/serve-docs.sh')
-rwxr-xr-x | scripts/serve-docs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/serve-docs.sh b/scripts/serve-docs.sh index 0ab17dc0f3..43606534fd 100755 --- a/scripts/serve-docs.sh +++ b/scripts/serve-docs.sh @@ -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 |