mirror of
https://github.com/kdabir/has.git
synced 2024-11-11 14:40:48 +01:00
31 lines
414 B
Bash
31 lines
414 B
Bash
OK=0
|
|
KO=0
|
|
|
|
_dq_report () {
|
|
if [ "$2" -eq 0 ]; then
|
|
echo "✔ $1"
|
|
OK=$(($OK+1))
|
|
else
|
|
echo "✘ $1"
|
|
KO=$(($KO+1))
|
|
fi
|
|
}
|
|
|
|
bundle -v > /dev/null 2>&1
|
|
_dq_report 'bundler' $?
|
|
|
|
gem -v > /dev/null 2>&1
|
|
_dq_report 'gem' $?
|
|
|
|
rake -V > /dev/null 2>&1
|
|
_dq_report 'rake' $?
|
|
|
|
ruby -v > /dev/null 2>&1
|
|
_dq_report 'ruby' $?
|
|
|
|
rvm -v > /dev/null 2>&1
|
|
_dq_report 'rvm' $?
|
|
|
|
echo Your dq is $OK / $(($OK+$KO))
|
|
|
|
exit $KO
|