Skip to content

Commit c751558

Browse files
committed
fixup! SC2236
1 parent 5b786d0 commit c751558

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

android/scripts/run-instrumented-tests.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ INVALID_TEST_ACCOUNT_TOKEN="${INVALID_TEST_ACCOUNT_TOKEN:-}"
2323
while [[ "$#" -gt 0 ]]; do
2424
case $1 in
2525
--test-type)
26-
if [[ -n ${2-} && "$2" =~ ^(app|mockapi|e2e)$ ]]; then
26+
if [[ -n "${2-}" && "$2" =~ ^(app|mockapi|e2e)$ ]]; then
2727
TEST_TYPE="$2"
2828
else
2929
echo "Error: Bad or missing test type. Must be one of: app, mockapi, e2e"
@@ -32,7 +32,7 @@ while [[ "$#" -gt 0 ]]; do
3232
shift 2
3333
;;
3434
--infra-flavor)
35-
if [[ -n ${2-} && "$2" =~ ^(prod|stagemole)$ ]]; then
35+
if [[ -n "${2-}" && "$2" =~ ^(prod|stagemole)$ ]]; then
3636
INFRA_FLAVOR="$2"
3737
else
3838
echo "Error: Bad or missing infra flavor. Must be one of: prod, stagemole"
@@ -41,7 +41,7 @@ while [[ "$#" -gt 0 ]]; do
4141
shift 2
4242
;;
4343
--billing-flavor)
44-
if [[ -n ${2-} && "$2" =~ ^(oss|play)$ ]]; then
44+
if [[ -n "${2-}" && "$2" =~ ^(oss|play)$ ]]; then
4545
BILLING_FLAVOR="$2"
4646
else
4747
echo "Error: Bad or missing billing flavor. Must be one of: oss, play"

0 commit comments

Comments
 (0)