mirror of https://github.com/kdabir/has.git
Add gpg package (#52)
* add GnuPG tools * clean unneeded space in REGEX for gulp
This commit is contained in:
parent
41149c3474
commit
1f28a53597
8
has
8
has
|
@ -149,13 +149,16 @@ __detect(){
|
|||
gem|rake|bundle) __dynamic_detect--version "${command}" ;;
|
||||
npm|yarn) __dynamic_detect--version "${command}" ;;
|
||||
|
||||
|
||||
## Cloud Tools
|
||||
aws|eb|sls|gcloud) __dynamic_detect--version "${command}" ;;
|
||||
heroku) __dynamic_detect--version "${command}" ;;
|
||||
netlify) __dynamic_detect--version "${command}" ;;
|
||||
netlifyctl) __dynamic_detect-arg_version "${command}" ;;
|
||||
|
||||
## GPG Tools
|
||||
gpg|gpgconf|gpg-agent|gpg-connect-agent) __dynamic_detect--version "${command}" ;;
|
||||
gpgsm) __dynamic_detect--version "${command}" ;;
|
||||
|
||||
## Hashicorp Tools
|
||||
terraform|packer) __dynamic_detect--version "${command}" ;;
|
||||
vagrant|consul) __dynamic_detect--version "${command}" ;;
|
||||
|
@ -176,9 +179,8 @@ __detect(){
|
|||
|
||||
## Example of commands that need custom processing
|
||||
|
||||
## TODO cleanup, currently need to add extra space in regex, otherwise the time gets selected
|
||||
gulp)
|
||||
version=$( gulp --version 2>&1| grep -Eo " ${REGEX_SIMPLE_VERSION}" | head -1)
|
||||
version=$( gulp --version 2>&1| grep -Eo "${REGEX_SIMPLE_VERSION}" | head -1)
|
||||
status=$?
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in New Issue