Clone
Robin Verduijn <robinverduijn.github@gmail.com>
committed
on 08 Sep 17
Fix `gradlew` execution for non-standard systems
On older Solaris versions and other systems where `/bin/sh` is not
a POSIX-compliant shell,… Show more
Fix `gradlew` execution for non-standard systems

On older Solaris versions and other systems where `/bin/sh` is not

a POSIX-compliant shell, the shell syntax used by the wrapper

script fails on certain constructs.

Fix those cases where the wrapper script was doing some things not

supported on the older non-POSIX shells: using backticks instead

of `$()`, changing the syntax of the `case` statement, and using

`expr` instead of arithmetic expansion.

Resolves: #2903

Show less