mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-10 14:24:34 -05:00
Fix Oracle JRE Extension Install (#670)
* Minor cleanup * Fix Oracle JRE Write issue
This commit is contained in:
@@ -18,6 +18,7 @@ import org.objectweb.asm.Opcodes
|
||||
import java.nio.file.FileSystems
|
||||
import java.nio.file.Files
|
||||
import java.nio.file.Path
|
||||
import java.nio.file.StandardOpenOption
|
||||
import kotlin.streams.asSequence
|
||||
|
||||
object BytecodeEditor {
|
||||
@@ -257,6 +258,11 @@ object BytecodeEditor {
|
||||
}
|
||||
|
||||
private fun write(pair: Pair<Path, ByteArray>) {
|
||||
Files.write(pair.first, pair.second)
|
||||
Files.write(
|
||||
pair.first,
|
||||
pair.second,
|
||||
StandardOpenOption.CREATE,
|
||||
StandardOpenOption.TRUNCATE_EXISTING
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user