Skip to content

Commit

Permalink
Passed binary names better in build scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
  • Loading branch information
stevekuznetsov committed Jun 13, 2016
1 parent 7574e4e commit 997c1e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,9 @@ readonly -f os::build::build_static_binaries
# OS_BUILD_PLATFORMS - Incoming variable of targets to build for. If unset
# then just the host architecture is built.
function os::build::build_binaries() {
local -a binaries=( "$@" )
# Create a sub-shell so that we don't pollute the outer environment
( os::build::internal::build_binaries "$@" )
( os::build::internal::build_binaries "${binaries[@]+"${binaries[@]}"}" )
}

# Build binary targets specified. Should always be run in a sub-shell so we don't leak GOBIN
Expand Down

0 comments on commit 997c1e2

Please sign in to comment.