Skip to content

Commit

Permalink
Fix docker-compose executable check: refactoring based on review comm…
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan committed Sep 22, 2017
1 parent df95e7b commit 98781e4
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,12 +532,11 @@ public void invoke() {
}

private boolean dockerComposeExecutableExists() {
boolean dockerComposeExists = CommandLine.executableExists(COMPOSE_EXECUTABLE);
if (!dockerComposeExists && SystemUtils.IS_OS_WINDOWS) {
if (SystemUtils.IS_OS_WINDOWS) {
return CommandLine.executableExists(COMPOSE_EXECUTABLE + ".exe");
} else {
return CommandLine.executableExists(COMPOSE_EXECUTABLE);
}

return dockerComposeExists;
}

/**
Expand Down

0 comments on commit 98781e4

Please sign in to comment.