Skip to content

Commit

Permalink
fix version reading
Browse files Browse the repository at this point in the history
  • Loading branch information
augi committed Feb 1, 2017
1 parent c9c9b5f commit 7557192
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,11 @@ class ComposeExtension {
}

VersionNumber getDockerComposeVersion() {
def p = project
def p = this.project
def env = this.environment
new ByteArrayOutputStream().withStream { os ->
p.exec { ExecSpec e ->
e.environment = environment
e.environment = env
e.commandLine composeCommand('--version')
e.standardOutput = os
}
Expand Down

0 comments on commit 7557192

Please sign in to comment.