Skip to content

Commit 525ee23

Browse files
committed
Fixed regression where {{FOO}} variables in repo credentials are no substituted (fixes #300)
1 parent 82ab219 commit 525ee23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/kscript/app/Script.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ fun Script.collectRepos(): List<MavenRepo> {
210210
}
211211
MavenRepo(
212212
namedArgs.getOrDefault("id", annotationParams[0]),
213-
namedArgs.getOrDefault("url", annotationParams[1]),
214-
namedArgs.getOrDefault("user", annotationParams.getOrNull(2) ?: ""),
213+
decodeEnv(namedArgs.getOrDefault("url", annotationParams[1])),
214+
decodeEnv(namedArgs.getOrDefault("user", annotationParams.getOrNull(2) ?: "")),
215215
namedArgs.getOrDefault("password", annotationParams.getOrNull(3) ?: "")
216216
)
217217
}

0 commit comments

Comments
 (0)