Skip to content

Commit

Permalink
Remove version printing on linux (eProsima#71)
Browse files Browse the repository at this point in the history
* It's on stderr and noisy

Signed-off-by: Ryan Friedman <[email protected]>
Co-authored-by: Antonio Cuadros <[email protected]>
Co-authored-by: Pablo Garrido <[email protected]>
  • Loading branch information
3 people authored and Ryan Friedman committed Aug 24, 2024
1 parent 2e552e9 commit 93b118a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions scripts/microxrceddsgen
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ dir="`dirname \"$0\"`"

java_exec=java

java -version &>/dev/null

if [ $? != 0 ]; then
if ! hash ${jave_exec}; then
[ -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; }
java_exec="${JAVA_HOME}/bin/java"
fi
Expand Down
4 changes: 1 addition & 3 deletions scripts/microxrceddsgen.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ dir="`dirname \"$0\"`"

java_exec=java

java -version &>/dev/null

if [ $? != 0 ]; then
if ! hash ${jave_exec}; then
[ -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; }
java_exec="${JAVA_HOME}/bin/java"
fi
Expand Down

0 comments on commit 93b118a

Please sign in to comment.