diff --git a/tests/test_hbase_exporter.sh b/tests/test_hbase_exporter.sh index 53ce44e..4847caf 100644 --- a/tests/test_hbase_exporter.sh +++ b/tests/test_hbase_exporter.sh @@ -11,7 +11,7 @@ HDFS_CMD_FORMAT="./hadoop/bin/hdfs --config hadoop/etc/hadoop namenode -format" source setup.sh setup_suite() { - if [ "FreeBSD" = $(uname) ]; then + if [ "FreeBSD" = "$(uname)" ]; then export JAVA_HOME=${JAVA_HOME:-"/usr/local"} else export JAVA_HOME=${JAVA_HOME:-"/"}