Skip to content

Commit f42ab05

Browse files
committed
fix shellcheck lint
1 parent a10caa0 commit f42ab05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/templates/kuttl/shutdown/count_regions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
set -euo 'pipefail'
77
set -x
88

9-
REGION_COUNT_ON_1=$(echo "list_regions 't1'" | /stackable/hbase/bin/hbase shell --noninteractive | grep test-hbase-regionserver-default-1 | wc -l)
9+
REGION_COUNT_ON_1=$(echo "list_regions 't1'" | /stackable/hbase/bin/hbase shell --noninteractive | grep -c test-hbase-regionserver-default-1)
1010

1111
test "${REGION_COUNT_ON_1}" -eq 15

tests/templates/kuttl/shutdown/create_regions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ echo "balance_switch false" | /stackable/hbase/bin/hbase shell --noninteractive
1010

1111
echo "create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit'}" | /stackable/hbase/bin/hbase shell --noninteractive
1212

13-
REGION_COUNT_ON_0=$(echo "list_regions 't1'" | /stackable/hbase/bin/hbase shell --noninteractive | grep test-hbase-regionserver-default-0 | wc -l)
13+
REGION_COUNT_ON_0=$(echo "list_regions 't1'" | /stackable/hbase/bin/hbase shell --noninteractive | grep -c test-hbase-regionserver-default-0)
1414

1515
test "${REGION_COUNT_ON_0}" -ge 0

0 commit comments

Comments
 (0)