From bae4ad3fcaaae9579e05ac8b7ef9d0e004535abf Mon Sep 17 00:00:00 2001 From: Timo Ley Date: Tue, 28 May 2019 20:38:43 +0200 Subject: [PATCH] Fixed command not found --- build.gradle | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index dc17925..c64dd13 100644 --- a/build.gradle +++ b/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()