From f25ef92cd03ef52688b893f1c1d006355a7d3096 Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Mon, 13 Feb 2017 14:00:18 +0100 Subject: [PATCH] client-go: make examples and OWNERS authorative --- staging/copy.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/staging/copy.sh b/staging/copy.sh index b6bfb786372..4b4f0ca6c98 100755 --- a/staging/copy.sh +++ b/staging/copy.sh @@ -76,8 +76,8 @@ cd "${CLIENT_REPO}" # save copies code from client-go into the temp folder to make sure we don't lose it by accident # TODO this is temporary until everything in certain directories is authoritative function save() { - mkdir -p "${CLIENT_REPO_TEMP}/$1" - cp -r "${CLIENT_REPO}/$1/"* "${CLIENT_REPO_TEMP}/$1" + mkdir -p "$(dirname "${CLIENT_REPO_TEMP}/$1")" + cp -r "${CLIENT_REPO}/$1"* "${CLIENT_REPO_TEMP}/" } # save everything for which the staging directory is the source of truth @@ -90,8 +90,8 @@ save "transport" save "third_party" save "plugin" save "util" - - +save "examples" +save "OWNERS" # mkcp copies file from the main repo to the client repo, it creates the directory if it doesn't exist in the client repo. function mkcp() {