Skip to content

Commit 5b3672f

Browse files
committed
double quote to prevent globbing -shellcheck
1 parent a5af79a commit 5b3672f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

e2e/setup_suite.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ setup_suite(){
88

99
bats_require_minimum_version 1.7.0
1010

11-
if [[ $(which bats) == *"homebrew"* ]]; then
11+
if [[ "$(which bats)" == *"homebrew"* ]]; then
1212
BATS_LIB_PATH=$(brew --prefix)/lib
1313
fi
1414

1515
# Check if BATS_LIB_PATH environment variable exists
1616
if [ -z "${BATS_LIB_PATH}" ]; then
1717
# Check if bats bin has homebrew in path name
18-
if [[ $(which bats) == *"homebrew"* ]]; then
19-
BATS_LIB_PATH=$(dirname $(which bats))/../lib
18+
if [[ "$(which bats)" == *"homebrew"* ]]; then
19+
BATS_LIB_PATH=$(dirname "$(which bats)")/../lib
2020
elif [ -d "/usr/lib/bats-support" ]; then
2121
BATS_LIB_PATH="/usr/lib"
2222
elif [ -d "/usr/local/lib/bats-support" ]; then

0 commit comments

Comments
 (0)