mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
4b981436fe
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
14 lines
330 B
Bash
14 lines
330 B
Bash
#!/usr/bin/env bash
|
|
|
|
install_binary() {
|
|
local file="$1"
|
|
local target="${DOCKER_MAKE_INSTALL_PREFIX:=/usr/local}/bin/"
|
|
if [ "$(go env GOOS)" == "linux" ]; then
|
|
echo "Installing $(basename $file) to ${target}"
|
|
mkdir -p "$target"
|
|
cp -f -L "$file" "$target"
|
|
else
|
|
echo "Install is only supported on linux"
|
|
return 1
|
|
fi
|
|
}
|