mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-12-25 14:25:35 +00:00
Small codefix to use parameter instead of fixed value.
This commit is contained in:
parent
e8c28b4e72
commit
c5f901f4a2
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user