Skip to content

Commit db0b3f2

Browse files
committed
[build] Fix Antora PDF util check
Signed-off-by: Dariusz Jędrzejczyk <[email protected]>
1 parent 9b6a015 commit db0b3f2

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

docs/build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,10 @@ plugins {
2020
}
2121

2222
def isCommandAvailable(String command) {
23-
def result = exec {
23+
return providers.exec {
2424
commandLine 'which', command
2525
ignoreExitValue true
26-
standardOutput = new ByteArrayOutputStream()
27-
errorOutput = new ByteArrayOutputStream()
28-
}
29-
return result.exitValue == 0
26+
}.result.get().exitValue == 0
3027
}
3128

3229
antora {

0 commit comments

Comments
 (0)