install.sh should exit non-zero (failure) if JAVACMD not executable

Description

install.sh does the following:

if [ ! -x "$JAVACMD" ] ; then
echo "Error: JAVA_HOME is not defined correctly."
echo " We cannot execute $JAVACMD"
exit
fi

i.e. it exits 0 (success). Instead it should exit 1 (failure). I could write a patch for this, but really it's trivial...

Environment

linux (but affects all unix platforms where install.sh is part of build)

Activity

Brent Putman 
January 28, 2016 at 12:49 AM

Cleaning up Jira, this was released, set to Closed.

Rod Widdowson 
January 8, 2015 at 1:22 PM

Resolved R3208 R3209
Also in V3 R7239

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Created January 8, 2015 at 12:46 PM
Updated August 4, 2021 at 9:37 PM
Resolved January 8, 2015 at 1:22 PM