From 2164018d82a7c9857c8196b863a538f5d47f5265 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Wed, 23 Mar 2016 19:02:38 +0100 Subject: [PATCH] Remove the verbosity of copy_containerd Signed-off-by: Vincent Demeester --- hack/make.sh | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/hack/make.sh b/hack/make.sh index b84a437202..2a93c962d4 100755 --- a/hack/make.sh +++ b/hack/make.sh @@ -290,23 +290,21 @@ bundle() { } copy_containerd() { - dir="$1" - # Add nested executables to bundle dir so we have complete set of - # them available, but only if the native OS/ARCH is the same as the - # OS/ARCH of the build target - if [ "$(go env GOOS)/$(go env GOARCH)" == "$(go env GOHOSTOS)/$(go env GOHOSTARCH)" ]; then - (set -x - if [ -x /usr/local/bin/docker-runc ]; then - echo "Copying nested executables into $dir" - for file in containerd containerd-shim containerd-ctr runc; do - cp "/usr/local/bin/docker-$file" "$dir/" - if [ "$2" == "hash" ]; then - hash_files "$dir/docker-$file" + dir="$1" + # Add nested executables to bundle dir so we have complete set of + # them available, but only if the native OS/ARCH is the same as the + # OS/ARCH of the build target + if [ "$(go env GOOS)/$(go env GOARCH)" == "$(go env GOHOSTOS)/$(go env GOHOSTARCH)" ]; then + if [ -x /usr/local/bin/docker-runc ]; then + echo "Copying nested executables into $dir" + for file in containerd containerd-shim containerd-ctr runc; do + cp "/usr/local/bin/docker-$file" "$dir/" + if [ "$2" == "hash" ]; then + hash_files "$dir/docker-$file" + fi + done fi - done - fi - ) - fi + fi } main() {