2
1
mirror of https://github.com/kdabir/has.git synced 2024-09-18 17:01:29 +02: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 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 ## Can allow dynamic checking here, i.e. checking commands that are not listed above
if [[ "${HAS_ALLOW_UNSAFE}" == "y" ]]; then if [[ "${HAS_ALLOW_UNSAFE}" == "y" ]]; then