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 "EXCLUDE_TESTS_URL = ${EXCLUDE_TESTS_URL}"
yetus_debug "INCLUDE_TESTS_URL = ${INCLUDE_TESTS_URL}" yetus_debug "INCLUDE_TESTS_URL = ${INCLUDE_TESTS_URL}"
if [[ -n "$EXCLUDE_TESTS_URL" ]]; then if [[ -n "$EXCLUDE_TESTS_URL" ]]; then
wget "$EXCLUDE_TESTS_URL" -O "excludes" if wget "$EXCLUDE_TESTS_URL" -O "excludes"; then
if [[ $? -eq 0 ]]; then
excludes=$(cat excludes) excludes=$(cat excludes)
yetus_debug "excludes=${excludes}" yetus_debug "excludes=${excludes}"
if [[ -n "${excludes}" ]]; then if [[ -n "${excludes}" ]]; then
@ -132,8 +131,7 @@ function personality_modules
"${EXCLUDE_TESTS_URL}. Ignoring and proceeding." "${EXCLUDE_TESTS_URL}. Ignoring and proceeding."
fi fi
elif [[ -n "$INCLUDE_TESTS_URL" ]]; then elif [[ -n "$INCLUDE_TESTS_URL" ]]; then
wget "$INCLUDE_TESTS_URL" -O "includes" if wget "$INCLUDE_TESTS_URL" -O "includes"; then
if [[ $? -eq 0 ]]; then
includes=$(cat includes) includes=$(cat includes)
yetus_debug "includes=${includes}" yetus_debug "includes=${includes}"
if [[ -n "${includes}" ]]; then if [[ -n "${includes}" ]]; then