Signed-off-by: Christophe Mehay <cmehay@online.net>
| ... | ... |
@@ -237,7 +237,7 @@ copy_binaries() {
|
| 237 | 237 |
if [ -x /usr/local/bin/docker-runc ]; then |
| 238 | 238 |
echo "Copying nested executables into $dir" |
| 239 | 239 |
for file in containerd containerd-shim containerd-ctr runc init proxy; do |
| 240 |
- cp `which "docker-$file"` "$dir/" |
|
| 240 |
+ cp -f `which "docker-$file"` "$dir/" |
|
| 241 | 241 |
if [ "$2" == "hash" ]; then |
| 242 | 242 |
hash_files "$dir/docker-$file" |
| 243 | 243 |
fi |
| ... | ... |
@@ -252,7 +252,7 @@ install_binary() {
|
| 252 | 252 |
if [ "$(go env GOOS)" == "linux" ]; then |
| 253 | 253 |
echo "Installing $(basename $file) to ${target}"
|
| 254 | 254 |
mkdir -p "$target" |
| 255 |
- cp -L "$file" "$target" |
|
| 255 |
+ cp -f -L "$file" "$target" |
|
| 256 | 256 |
else |
| 257 | 257 |
echo "Install is only supported on linux" |
| 258 | 258 |
return 1 |