From 01273ad85f334ff0ae141cfa8ab0e52ca895fd3d Mon Sep 17 00:00:00 2001 From: Christophe Mehay Date: Mon, 13 Feb 2017 14:16:49 +0100 Subject: [PATCH] Force copy on make install to avoid Text file busy error Signed-off-by: Christophe Mehay --- hack/make.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/make.sh b/hack/make.sh index 8ce5e76288..5449725ed4 100755 --- a/hack/make.sh +++ b/hack/make.sh @@ -237,7 +237,7 @@ copy_binaries() { if [ -x /usr/local/bin/docker-runc ]; then echo "Copying nested executables into $dir" for file in containerd containerd-shim containerd-ctr runc init proxy; do - cp `which "docker-$file"` "$dir/" + cp -f `which "docker-$file"` "$dir/" if [ "$2" == "hash" ]; then hash_files "$dir/docker-$file" fi @@ -252,7 +252,7 @@ install_binary() { if [ "$(go env GOOS)" == "linux" ]; then echo "Installing $(basename $file) to ${target}" mkdir -p "$target" - cp -L "$file" "$target" + cp -f -L "$file" "$target" else echo "Install is only supported on linux" return 1