Skip to content

Commit 95a44c5

Browse files
committed
Remove version printing on linux
* It's on stderr and noisy Signed-off-by: Ryan Friedman <[email protected]>
1 parent 2e552e9 commit 95a44c5

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

scripts/microxrceddsgen

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ dir="`dirname \"$0\"`"
44

55
java_exec=java
66

7-
java -version &>/dev/null
8-
9-
if [ $? != 0 ]; then
7+
if ! hash ${jave_exec}; then
108
[ -z "$JAVA_HOME" ] && { echo "Java binary cannot be found. Please, make sure its location is in the PATH environment variable or set JAVA_HOME environment variable."; exit 1; }
119
java_exec="${JAVA_HOME}/bin/java"
1210
fi

scripts/microxrceddsgen.in

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ dir="`dirname \"$0\"`"
44

55
java_exec=java
66

7-
java -version &>/dev/null
8-
9-
if [ $? != 0 ]; then
7+
if ! hash ${jave_exec}; then
108
[ -z "$JAVA_HOME" ] && { echo "Java binary cannot be found. Please, make sure its location is in the PATH environment variable or set JAVA_HOME environment variable."; exit 1; }
119
java_exec="${JAVA_HOME}/bin/java"
1210
fi

0 commit comments

Comments
 (0)