Skip to content

Commit

Permalink
Fix the bash test flag
Browse files Browse the repository at this point in the history
  • Loading branch information
hub-cap committed Jun 15, 2018
1 parent 85ee81a commit 442023c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distribution/packages/src/common/scripts/preinst
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ else
JAVA=`which java`
fi

if [ ! -x "$JAVA" ]; then
echo "Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME"
if [ -z "$JAVA" ]; then
echo "Could not find java; please install java in your PATH or set JAVA_HOME"
exit 1
fi

Expand Down

0 comments on commit 442023c

Please sign in to comment.