Skip to content

Commit

Permalink
fixed typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frontrider committed Apr 28, 2023
1 parent b93f2af commit 05afef5
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/main/kotlin/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,24 @@ internal const val godleAddonsTaskName = "installGodotAddons"


//Global cache folders.
internal val GodotCacheFolder =
when {
internal val GodotCacheFolder = when {
(System.getenv("GODOT_HOME") != null) -> "${System.getenv("GODOT_HOME")}/godot_cache"
(System.getenv("GRADLE_HOME") != null) -> "${System.getenv("GRADLE_HOME")}/godle/godot_cache"
(System.getenv("HOME") != null) -> "${System.getenv("HOME")}/.gradle/godle/godot_cache"
else -> {
"${System.getProperty("user.home")}/.gradle/godle/godot_cache"
}
}


internal val GodotFolder =
when {
(System.getenv("GODOT_HOME") != null) -> "${System.getenv("GODOT_HOME")}/godot"
(System.getenv("GRADLE_HOME") != null) -> "${System.getenv("GRADLE_HOME")}/godle/godot"
(System.getenv("HOME") != null) -> "${System.getenv("HOME")}/.gradle/godle/godot"
else -> {
"${System.getProperty("user.home")}/.gradle/godle/godot"
}
internal val GodotFolder = when {
(System.getenv("GODOT_HOME") != null) -> "${System.getenv("GODOT_HOME")}/godot"
(System.getenv("GRADLE_HOME") != null) -> "${System.getenv("GRADLE_HOME")}/godle/godot"
(System.getenv("HOME") != null) -> "${System.getenv("HOME")}/.gradle/godle/godot"
else -> {
"${System.getProperty("user.home")}/.gradle/godle/godot"
}
}

internal fun getGodotCache(version: GodotVersion): String {
return "$GodotCacheFolder/${version.cachedName}/"
Expand Down

0 comments on commit 05afef5

Please sign in to comment.