KAFKA-3989; MINOR: follow-up: update script to run from kafka root

…h-benchmarks/jmh.sh

Author: bbejeck <bbejeck@gmail.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>, Guozhang Wang <wangguoz@gmail.com>

Closes #2654 from bbejeck/KAFKA-3989_follow_up

(cherry picked from commit b6adb2dc89)
Signed-off-by: Guozhang Wang <wangguoz@gmail.com>
This commit is contained in:
Bill Bejeck 2017-08-26 16:15:40 -07:00 committed by Guozhang Wang
parent 1425758915
commit fc166ff43e
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ jmh_project_name="jmh-benchmarks"
if [ ${base_dir} == "." ]; then
gradlew_dir=".."
elif [ ${base_dir} == ${jmh_project_name} ]; then
elif [ ${base_dir##./} == "${jmh_project_name}" ]; then
gradlew_dir="."
else
echo "JMH Benchmarks need to be run from the root of the kafka repository or the 'jmh-benchmarks' directory"