Add gpg package (#52)

* add GnuPG tools

* clean unneeded space in REGEX for gulp
This commit is contained in:
ptt-homme 2020-08-31 05:50:54 +02:00 committed by GitHub
parent 41149c3474
commit 1f28a53597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

8
has
View File

@ -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=$?
;;