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

7 lines
165 B
Bash

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