Add pandoc wrapper
This commit is contained in:
parent
1ac5768b14
commit
aff7e88c7e
@ -100,7 +100,9 @@ internal object PandocInstaller {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (os == OSType.LINUX_AMD || os == OSType.LINUX_ARM) {
|
||||||
Files.setPosixFilePermissions(pandocExecutablePath, setOf(PosixFilePermission.GROUP_EXECUTE))
|
Files.setPosixFilePermissions(pandocExecutablePath, setOf(PosixFilePermission.GROUP_EXECUTE))
|
||||||
|
}
|
||||||
|
|
||||||
return pandocExecutablePath
|
return pandocExecutablePath
|
||||||
}
|
}
|
||||||
@ -180,7 +182,7 @@ internal object PandocInstaller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun downloadWithRetry(url: URL): Path? {
|
private fun downloadWithRetry(url: URL): Path? {
|
||||||
val targetPath = Files.createTempFile("pandoc",".tmp")
|
val targetPath = Files.createTempFile("pandoc", ".tmp")
|
||||||
log.info("Downloading pandoc to $targetPath")
|
log.info("Downloading pandoc to $targetPath")
|
||||||
|
|
||||||
repeat(ATTEMPTS) {
|
repeat(ATTEMPTS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user