Small codefix to use parameter instead of fixed value.

This commit is contained in:
Fabian Schlenz 2018-04-12 05:57:11 +02:00
parent e8c28b4e72
commit c5f901f4a2
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class Settings(val file_base: String, val database: Database, val cli_settings:
private fun copy_sample_ini(filename: String) {
val stream = Config::class.java.getResourceAsStream("/config.sample.ini")
File(file_base + "config.sample.ini").outputStream().use { stream.copyTo(it) }
File(file_base + filename).outputStream().use { stream.copyTo(it) }
stream.close()
}