From 7658d22f3ae8a7d55ec500937a994259460bffde Mon Sep 17 00:00:00 2001 From: Andronik Ordian Date: Fri, 21 Sep 2018 16:28:04 +0200 Subject: [PATCH] stable(rpc-docs): avoid recursive copy (#9613) * stable: avoid recursive cp in rpc-docs * rpc-docs: remove cd .. --- scripts/gitlab-rpc-docs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/gitlab-rpc-docs.sh b/scripts/gitlab-rpc-docs.sh index 82d9a0eeb..13d494371 100755 --- a/scripts/gitlab-rpc-docs.sh +++ b/scripts/gitlab-rpc-docs.sh @@ -42,12 +42,12 @@ upload_files() { git push --tags } -PROJECT_DIR=$(pwd) +RPC_TRAITS_DIR="rpc/src/v1/traits" setup_git -cd .. 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 build_docs cd ..