stable(rpc-docs): avoid recursive copy (#9613)

* stable: avoid recursive cp in rpc-docs

* rpc-docs: remove cd ..
This commit is contained in:
Andronik Ordian 2018-09-21 16:28:04 +02:00 committed by GitHub
parent 1b3b115e55
commit 7658d22f3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,12 +42,12 @@ upload_files() {
git push --tags git push --tags
} }
PROJECT_DIR=$(pwd) RPC_TRAITS_DIR="rpc/src/v1/traits"
setup_git setup_git
cd ..
clone_repos clone_repos
cp -r $PROJECT_DIR jsonrpc/.parity mkdir -p "jsonrpc/.parity/$RPC_TRAITS_DIR"
cp $RPC_TRAITS_DIR/*.rs "jsonrpc/.parity/$RPC_TRAITS_DIR"
cd jsonrpc cd jsonrpc
build_docs build_docs
cd .. cd ..