Fix bug when `gor` not installed

This commit is contained in:
Cody Hiar 2019-10-07 20:44:28 -06:00
parent bdf7c2ffe6
commit 39daf04630
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)