Fixed command not found

This commit is contained in:
Timo Ley 2019-05-28 20:38:43 +02:00
parent 8562642a4b
commit bae4ad3fca

View file

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