updates to astronvim installer

This commit is contained in:
Daylin Morgan 2022-11-16 14:54:52 -06:00
parent 08c9994d88
commit 037070f30d
1 changed files with 4 additions and 4 deletions

View File

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