Skip to content

Commit

Permalink
fix: fallback for architecture and os determination
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch committed Nov 23, 2023
1 parent f5dd87a commit c049ad8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/io/snyk/plugin/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ fun getOS(): String {
"lin" to "linux"
)
val osName = SystemUtils.OS_NAME.toString().lowercase().substring(0, END_INDEX_FOR_OS_MATCHING)
return osMap[osName] ?: "unknown"
return osMap[osName] ?: osName
}

fun getArch(): String {
Expand All @@ -397,5 +397,5 @@ fun getArch(): String {
"x8632" to "386",
"386" to "386",
)
return archMap[value] ?: "unknown"
return archMap[value] ?: value
}

0 comments on commit c049ad8

Please sign in to comment.