2
1
mirror of https://github.com/kdabir/has.git synced 2024-09-18 17:01:29 +02:00
has/lib/db/mongo.sh

7 lines
184 B
Bash

command_name="mongo-client"
output=$(mongo --version 2>&1)
status=$?
version=$(echo "$output" | egrep -o "$SIMPLE_VERSIONING" | head -1)
_dq_report "$command_name" $status "$version"