mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Make Makefile work on OS X
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
9c9a1d1b4b
commit
df40c61f8a
1 changed files with 4 additions and 4 deletions
|
@ -2,17 +2,17 @@
|
|||
set -e
|
||||
|
||||
# Retrieve OS/ARCH of docker daemon, eg. linux/amd64
|
||||
export DOCKER_ENGINE_OSARCH="$(docker version |tac|tac| awk '
|
||||
export DOCKER_ENGINE_OSARCH="$(docker version | awk '
|
||||
$1 == "Client:" { server = 0; next }
|
||||
$1 == "Server:" { server = 1; next }
|
||||
server && $1 == "OS/Arch:" { print $2; exit }
|
||||
server && $1 == "OS/Arch:" { print $2 }
|
||||
')"
|
||||
export DOCKER_ENGINE_GOOS="${DOCKER_ENGINE_OSARCH%/*}"
|
||||
export DOCKER_ENGINE_GOARCH="${DOCKER_ENGINE_OSARCH##*/}"
|
||||
|
||||
# and the client, just in case
|
||||
export DOCKER_CLIENT_OSARCH="$(docker version |tac|tac| awk '
|
||||
export DOCKER_CLIENT_OSARCH="$(docker version | awk '
|
||||
$1 == "Client:" { client = 1; next }
|
||||
$1 == "Server:" { client = 0; next }
|
||||
client && $1 == "OS/Arch:" { print $2; exit }
|
||||
client && $1 == "OS/Arch:" { print $2 }
|
||||
')"
|
||||
|
|
Loading…
Reference in a new issue