Skip to content

Commit

Permalink
build: set builder as unknown on error or getting empty
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Feb 23, 2024
1 parent fa070cf commit fe6ad35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-logic/convention/src/main/kotlin/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ val Project.buildABI
val Project.builder
get() =
envOrProp("CI_NAME", "ciName") {
runCmd("git config user.name")
runCatching { runCmd("git config user.name").ifEmpty { "(Unknown)" } }.getOrElse { "(Unknown)" }
}

val Project.buildGitRepo
Expand Down

0 comments on commit fe6ad35

Please sign in to comment.