Skip to content

Commit 76905b6

Browse files
committed
Fix repository URL
1 parent 64f32eb commit 76905b6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,15 @@ fun RepositoryHandler.flintRepository() {
2424
distributorUrl = project.properties.getOrDefault(
2525
"net.flintmc.distributor.url",
2626
"https://dist.labymod.net"
27-
).toString() + "/api/v1/maven/release"
27+
).toString()
2828
}
2929

30+
if(distributorUrl.endsWith('/')) {
31+
distributorUrl = distributorUrl.substringBeforeLast('/')
32+
}
33+
34+
distributorUrl += "/api/v1/maven/release"
35+
3036
var bearerToken = System.getenv("FLINT_DISTRIBUTOR_BEARER_TOKEN")
3137

3238
if (bearerToken == null) {

0 commit comments

Comments
 (0)