Skip to content

Commit

Permalink
Fix to 6.8 backport of #47013
Browse files Browse the repository at this point in the history
The tar.gz in 6.8 contains ML binaries for all platforms,
so that check for the MacOS directory should not check the
platform.
  • Loading branch information
droberts195 committed Nov 1, 2019
1 parent 62273d9 commit 3f2eeff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distribution/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ configure(subprojects.findAll { ['archives', 'packages'].contains(it.name) }) {
modulesFiles = { oss ->
copySpec {
eachFile {
if (it.relativePath.segments[-2] == 'bin' || (platform == 'darwin' && it.relativePath.segments[-2] == 'MacOS')) {
if (it.relativePath.segments[-2] == 'bin' || it.relativePath.segments[-2] == 'MacOS') {
// bin files, wherever they are within modules (eg platform specific) should be executable
// and MacOS is an alternative to bin on macOS
it.mode = 0755
Expand Down

0 comments on commit 3f2eeff

Please sign in to comment.