From efb95a17945cc91aa639396f6f6c528b52c71fcb Mon Sep 17 00:00:00 2001 From: Sean Busbey Date: Sun, 17 Sep 2017 23:54:37 -0500 Subject: [PATCH] HBASE-18834 fix shellcheck warning on hbase personality Signed-off-by: Dima Spivak --- dev-support/hbase-personality.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh index cf7c6b900c2..b7a2f9730cd 100755 --- a/dev-support/hbase-personality.sh +++ b/dev-support/hbase-personality.sh @@ -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