Skip to content

Commit

Permalink
hack: simplify target-platform matching
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Apr 20, 2019
1 parent 3c99a71 commit b03da99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/binaries
Expand Up @@ -16,7 +16,7 @@ binariesLegacy() {
iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX)
copysrc="/usr/bin/."

case "$(echo "${TARGETPLATFORM}" | cut -d"/" -f1)" in
case "${TARGETPLATFORM%%/*}" in
"darwin")
docker build --iidfile "${iidfile}" --target buildctl-darwin -f ./hack/dockerfiles/test.Dockerfile --force-rm .
copysrc="/out/."
Expand All @@ -42,7 +42,7 @@ binariesDocker() {
mkdir -p bin/tmp
export DOCKER_BUILDKIT=1
iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX)
target=$(echo "${TARGETPLATFORM}" | cut -d"/" -f1)
target=${TARGETPLATFORM%%/*}
if [ -z "$target" ]; then
target="linux"
fi
Expand Down

0 comments on commit b03da99

Please sign in to comment.