[script] exclude ot_testing and __pycache__ when building the OTBR docker (#9457)

This commit excludes `ot_testing` and `__pycache__` directories when
copying the files before building the docker.

Such files are usually generated by root user and will cause errors
when copying them as a non-root user.
This commit is contained in:
whd
2023-09-27 10:41:07 -07:00
committed by GitHub
parent 0c5966de81
commit 17286dbd24
+2
View File
@@ -382,6 +382,8 @@ do_build_otbr_docker()
rm -rf third_party/openthread/repo
rsync -r \
--exclude=build \
--exclude=ot_testing \
--exclude=__pycache__ \
"${otdir}/." \
third_party/openthread/repo
rm -rf .git