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 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()
|
||||||
|
|
Loading…
Reference in a new issue