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 2a8fb7a9ae
commit efb95a1794
1 changed files with 2 additions and 4 deletions

View File

@ -119,8 +119,7 @@ function personality_modules
yetus_debug "EXCLUDE_TESTS_URL = ${EXCLUDE_TESTS_URL}"
yetus_debug "INCLUDE_TESTS_URL = ${INCLUDE_TESTS_URL}"
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)
yetus_debug "excludes=${excludes}"
if [[ -n "${excludes}" ]]; then
@ -132,8 +131,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)
yetus_debug "includes=${includes}"
if [[ -n "${includes}" ]]; then