HBASE-18834 fix shellcheck warning on hbase personality

Signed-off-by: Dima Spivak <dimaspivak@apache.org>
This commit is contained in:
Sean Busbey 2017-09-17 23:54:37 -05:00
parent 2aa10cb651
commit 5ed2f899e1
1 changed files with 2 additions and 4 deletions

View File

@ -117,8 +117,7 @@ function personality_modules
if [[ ${testtype} = unit ]]; then
extra="${extra} -PrunAllTests"
if [[ -n "$EXCLUDE_TESTS_URL" ]]; then
wget "$EXCLUDE_TESTS_URL" -O "excludes"
if [[ $? -eq 0 ]]; then
if wget "$EXCLUDE_TESTS_URL" -O "excludes"; then
excludes=$(cat excludes)
if [[ -n "${excludes}" ]]; then
extra="${extra} -Dtest.exclude.pattern=${excludes}"
@ -129,8 +128,7 @@ function personality_modules
"${EXCLUDE_TESTS_URL}. Ignoring and proceeding."
fi
elif [[ -n "$INCLUDE_TESTS_URL" ]]; then
wget "$INCLUDE_TESTS_URL" -O "includes"
if [[ $? -eq 0 ]]; then
if wget "$INCLUDE_TESTS_URL" -O "includes"; then
includes=$(cat includes)
if [[ -n "${includes}" ]]; then
extra="${extra} -Dtest=${includes}"