mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-25 16:05:52 +00:00
Merge pull request #2125 from Dogild/bootstrapRegex
Fixed: bootstrap doesn't handle specific OpenJDK Runtime Environment version
This commit is contained in:
commit
90c65c2927
1 file changed
+2
-2
+2
-2
@@ -134,8 +134,8 @@ function check_install_environment () {
|
||||
java_version=$(java -version 2>&1)
|
||||
echo $java_version | grep OpenJDK > /dev/null
|
||||
if [ "$?" = "0" ]; then # OpenJDK: make sure >= 6b18
|
||||
openjdk_version=$(echo $java_version | egrep -o '[0-9]b[0-9]+')
|
||||
if [ $(echo $openjdk_version | tr -d 'b') -lt 618 ]; then
|
||||
openjdk_version=$(echo $java_version | egrep -o '[0-9]\-?b[0-9]+')
|
||||
if [ $(echo $openjdk_version | tr -d 'b' | tr -d '-') -lt 618 ]; then
|
||||
echo "Error: Narwhal is not compatible with your version of OpenJDK: $openjdk_version."
|
||||
echo "Please upgrade to OpenJDK >= 6b18 or switch to the Sun JVM. Then re-run bootstrap.sh."
|
||||
exit 1
|
||||
|
||||
Reference in new issue
Block a user