From 1f28a535979a868176138c510030f318290a2d47 Mon Sep 17 00:00:00 2001 From: ptt-homme Date: Mon, 31 Aug 2020 05:50:54 +0200 Subject: [PATCH] Add gpg package (#52) * add GnuPG tools * clean unneeded space in REGEX for gulp --- has | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/has b/has index ef6b67d..867b4fd 100755 --- a/has +++ b/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=$? ;;