Fix bug when `gor` not installed (#41)

This commit is contained in:
Cody Hiar 2019-10-07 21:30:12 -06:00 committed by Kunal Dabir
parent bdf7c2ffe6
commit 28484822d6
1 changed files with 1 additions and 1 deletions

2
has
View File

@ -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)