Skip to content

Commit 268fb2c

Browse files
authored
Merge pull request #61 from aravindnc/main
Fix to use mongo client if MongoDB verison is less than or equal to 4.
2 parents b827754 + 12b898a commit 268fb2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

start-mongodb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fi
2323

2424

2525
echo "::group::Selecting correct MongoDB client"
26-
if [ "`echo $MONGODB_VERSION | cut -c 1`" = "4" ]; then
26+
if [ "`echo $MONGODB_VERSION | cut -c 1`" -le "4" ]; then
2727
MONGODB_CLIENT="mongo"
2828
fi
2929
echo " - Using MongoDB client: [$MONGODB_CLIENT]"

0 commit comments

Comments
 (0)