mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2026-10-01 16:02:49 +00:00
Small codefix to use parameter instead of fixed value.
This commit is contained in:
1 parent
e8c28b4e72
commit
c5f901f4a2
1 file changed
+1
-1
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user