Fixed command not found

This commit is contained in:
Timo Ley 2019-05-28 20:38:43 +02:00
parent 8562642a4b
commit bae4ad3fca
1 changed files with 7 additions and 4 deletions

View File

@ -32,11 +32,14 @@ def getVersionName = { ->
def getAPIKey = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'cat', '../apiKey'
standardOutput = stdout
if (Os.isFamily(Os.FAAMILY_LINUX)) {
exec {
commandLine 'cat', '../apiKey'
standardOutput = stdout
}
return stdout.toString().trim()
}
return stdout.toString().trim()
return "0";
}
version = getVersionName()