2
1
mirror of https://github.com/kdabir/has.git synced 2024-11-10 21:26:50 +01:00
has/lib/core/python.sh

6 lines
144 B
Bash

output=$(python --version 2>&1)
status=$?
version=$(echo "$output" | grep -o "\d*\.\d*\.\d*" | head -1)
_dq_report 'python' $status "$version"