use sh explicitly

This commit is contained in:
Jakub Sokołowski 2018-05-07 19:56:50 +02:00
parent 1b25e1f3bf
commit 86c6701340
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020

View File

@ -97,10 +97,8 @@ def enableProguardInReleaseBuilds = false
def getVersionCode = { ->
new ByteArrayOutputStream().withStream { stdOut ->
println System.getProperty("user.dir")
exec {
workingDir "../"
commandLine "./build_no.sh", "--tag"
commandLine "sh", "../build_no.sh", "--tag"
standardOutput = stdOut
}
return stdOut.toString().toInteger()