mirror of https://github.com/kdabir/has.git
Fix bug when `gor` not installed (#41)
This commit is contained in:
parent
bdf7c2ffe6
commit
28484822d6
2
has
2
has
|
@ -176,7 +176,7 @@ __detect(){
|
|||
## gor returns version but does not return normal status code, hence needs custom processing
|
||||
gor)
|
||||
version=$( gor version 2>&1 | grep -Eo "${REGEX_SIMPLE_VERSION}" | head -1)
|
||||
if [ $? -eq 1 ]; then status=0; else status=1; fi
|
||||
if [ $? -eq 1 ]; then status=0; else status=127; fi
|
||||
;;
|
||||
|
||||
sbt)
|
||||
|
|
Loading…
Reference in New Issue