Add pandoc wrapper

This commit is contained in:
Alexander Nozik 2023-11-04 16:58:58 +03:00
parent 1ac5768b14
commit aff7e88c7e

View File

@ -100,7 +100,9 @@ internal object PandocInstaller {
)
)
Files.setPosixFilePermissions(pandocExecutablePath, setOf(PosixFilePermission.GROUP_EXECUTE))
if (os == OSType.LINUX_AMD || os == OSType.LINUX_ARM) {
Files.setPosixFilePermissions(pandocExecutablePath, setOf(PosixFilePermission.GROUP_EXECUTE))
}
return pandocExecutablePath
}
@ -180,7 +182,7 @@ internal object PandocInstaller {
}
private fun downloadWithRetry(url: URL): Path? {
val targetPath = Files.createTempFile("pandoc",".tmp")
val targetPath = Files.createTempFile("pandoc", ".tmp")
log.info("Downloading pandoc to $targetPath")
repeat(ATTEMPTS) {