forked from tilera/infinity-craft
Fixed command not found
This commit is contained in:
parent
8562642a4b
commit
bae4ad3fca
1 changed files with 7 additions and 4 deletions
11
build.gradle
11
build.gradle
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue