mirror of https://github.com/kdabir/has.git
parent
c12a38bbdd
commit
8b43040ce2
8
has
8
has
|
@ -10,7 +10,9 @@ readonly BINARY_NAME="has"
|
||||||
readonly VERSION="v1.6.0"
|
readonly VERSION="v1.6.0"
|
||||||
|
|
||||||
## constants - symbols for success failure
|
## constants - symbols for success failure
|
||||||
if [[ -z $TERM ]]; then
|
if [[ ! -t 1 ]]; then
|
||||||
|
TERM="dumb"
|
||||||
|
elif [[ -z $TERM ]]; then
|
||||||
TERM="xterm"
|
TERM="xterm"
|
||||||
fi
|
fi
|
||||||
readonly txtreset="$(tput -T $TERM sgr0)"
|
readonly txtreset="$(tput -T $TERM sgr0)"
|
||||||
|
@ -153,7 +155,7 @@ __detect(){
|
||||||
gunzip) __dynamic_detect--version "${command}" ;;
|
gunzip) __dynamic_detect--version "${command}" ;;
|
||||||
tee) __dynamic_detect--version "${command}" ;;
|
tee) __dynamic_detect--version "${command}" ;;
|
||||||
screen) __dynamic_detect-v "${command}" ;;
|
screen) __dynamic_detect-v "${command}" ;;
|
||||||
|
|
||||||
# Container runtimes
|
# Container runtimes
|
||||||
docker|podman) __dynamic_detect--version "${command}" ;;
|
docker|podman) __dynamic_detect--version "${command}" ;;
|
||||||
|
|
||||||
|
@ -177,7 +179,7 @@ __detect(){
|
||||||
npm|yarn) __dynamic_detect--version "${command}" ;;
|
npm|yarn) __dynamic_detect--version "${command}" ;;
|
||||||
|
|
||||||
## Rust
|
## Rust
|
||||||
rustc|cargo) __dynamic_detect--version "${command}" ;;
|
rustc|cargo) __dynamic_detect--version "${command}" ;;
|
||||||
|
|
||||||
## Cloud Tools
|
## Cloud Tools
|
||||||
aws|eb|sls|gcloud) __dynamic_detect--version "${command}" ;;
|
aws|eb|sls|gcloud) __dynamic_detect--version "${command}" ;;
|
||||||
|
|
Loading…
Reference in New Issue