1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-22 08:46:15 +00:00

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

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()
}