Added missing trim()

master
Robinson 2022-03-05 14:36:46 +01:00
parent a8e7bbc2ee
commit e0f16f3782
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ open class PlatformHelper constructor(private val props: Properties = System.get
val value = props.getProperty(name)
return value ?: System.getProperty(name) ?:
// Added so that we can test osArch on Windows and on non-arm systems
if (name == "uname") Executor.run("uname", "-m")
if (name == "uname") Executor.run("uname", "-m").trim()
else error("Unable to find a value for property [$name].")
}