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:
parent
d61a4bb457
commit
dfe466c7bf
5
has
5
has
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user