Skip to content

Commit b269466

Browse files
committed
Grab Ruby documentation path before switching Git branches
1 parent 0818e99 commit b269466

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

generate_api_docs.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ py)
1111
;;
1212
rb)
1313
bazel run //rb:docs || exit
14+
docs="$(bazel cquery --output=files //rb:docs 2> /dev/null).runfiles/selenium/docs/api/rb"
1415
;;
1516
*)
1617
echo "Selenium API docs generation"
@@ -41,7 +42,7 @@ py)
4142
;;
4243
rb)
4344
rm -rf docs/api/rb
44-
mv "$(bazel cquery --output=files //rb:docs 2> /dev/null).runfiles/selenium/docs/api/rb" docs/api/rb
45+
mv $docs docs/api/rb
4546
;;
4647
*)
4748
echo "ERROR: unknown parameter \"$API_DOCS_LANGUAGE\""

0 commit comments

Comments
 (0)