Skip to content

Commit

Permalink
Fix to use mongo client if MongoDB verison is less than or equal to 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindnc authored May 21, 2024
1 parent b827754 commit 12b898a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start-mongodb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fi


echo "::group::Selecting correct MongoDB client"
if [ "`echo $MONGODB_VERSION | cut -c 1`" = "4" ]; then
if [ "`echo $MONGODB_VERSION | cut -c 1`" -le "4" ]; then
MONGODB_CLIENT="mongo"
fi
echo " - Using MongoDB client: [$MONGODB_CLIENT]"
Expand Down

0 comments on commit 12b898a

Please sign in to comment.