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

Added sbt support

This commit is contained in:
vimist 2017-10-14 11:12:54 +01:00
parent d61a4bb457
commit dfe466c7bf

5
has
View File

@ -103,6 +103,11 @@ __detect(){
if [ $? -eq 1 ]; then status=0; else status=1; fi
;;
sbt)
version=$(sbt about 2>&1 | egrep -o "([[:digit:]]{1,4}\.){2}[[:digit:]]{1,4}" | head -1)
status=$?
;;
*)
## Can allow dynamic checking here, i.e. checking commands that are not listed above
if [[ "${HAS_ALLOW_UNSAFE}" == "y" ]]; then