Skip to content

Commit

Permalink
fix: configs
Browse files Browse the repository at this point in the history
  • Loading branch information
MEFRREEX committed Oct 3, 2024
1 parent 2d6d842 commit 6694e54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ object ConfigHelper {
val resourceStream = javaClass.classLoader.getResourceAsStream(target)
val outputFile = File(output)
if (resourceStream != null && (replace || !outputFile.exists())) {
outputFile.parentFile.mkdirs()
outputFile.parentFile?.mkdirs()
outputFile.createNewFile()
outputFile.outputStream().use { resourceStream.copyTo(it) }
}
Expand Down

0 comments on commit 6694e54

Please sign in to comment.