updates to astronvim installer

This commit is contained in:
Daylin Morgan 2022-11-16 14:54:52 -06:00
parent 08c9994d88
commit 037070f30d

View file

@ -15,7 +15,7 @@ deps=(
# TODO: make sure tree-sitter is rust version? # TODO: make sure tree-sitter is rust version?
is-cmd() { is-cmd() {
if [ -x "$(command -v $1)" ]; then if [ -x "$(command -v "$1")" ]; then
return 0 return 0
else else
return 1 return 1
@ -43,10 +43,10 @@ install-astronvim(){
echo "Checking for optional dependencies" echo "Checking for optional dependencies"
check-dep(){ check-dep(){
if is-cmd $1; then if is-cmd "$1"; then
printf '%15s \033[32m%s\033[0m\n' $1 'yes' printf '%15s \033[32m%s\033[0m\n' "$1" 'yes'
else else
printf '%15s \033[31m%s\033[0m\n' $1 'no' printf '%15s \033[31m%s\033[0m\n' "$1" 'no'
fi fi
} }