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,12 +32,15 @@ def getVersionName = { ->
def getAPIKey = { -> def getAPIKey = { ->
def stdout = new ByteArrayOutputStream() def stdout = new ByteArrayOutputStream()
if (Os.isFamily(Os.FAAMILY_LINUX)) {
exec { exec {
commandLine 'cat', '../apiKey' commandLine 'cat', '../apiKey'
standardOutput = stdout standardOutput = stdout
} }
return stdout.toString().trim() return stdout.toString().trim()
} }
return "0";
}
version = getVersionName() version = getVersionName()
group = modGroup group = modGroup