Some versions of bash do not support the hybrid function definition used in the file generated by gradle wrapper


(Kenneth Rogers) #1

The definition of the function splitJvmOpts is using a hybrid definition, the bash version on our ubuntu machines fail on this, needing either “splitJvmOpts() {” or “function splitJvmOpts {”.

# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules function splitJvmOpts() {

JVM_OPTS=("$@") } </code.