Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lamba92 committed Jul 5, 2024
1 parent f5c39a5 commit c86e7e1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions buildSrc/src/main/kotlin/convention.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ val secretKey: String? = System.getenv("SECRET_KEY")

val password: String? = System.getenv("SECRET_KEY_PASSWORD")
?: rootProject.file("local.properties")
.readLines()
.map { it.split("=") }
.find { it.first() == "secret.password" }
.takeIf { it.exists() }
?.readLines()
?.map { it.split("=") }
?.find { it.first() == "secret.password" }
?.get(1)


Expand Down

0 comments on commit c86e7e1

Please sign in to comment.