mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
14 lines
329 B
Text
14 lines
329 B
Text
|
#!/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
|
||
|
}
|