From 037070f30df9ca0bbc714674a9c2007b36a12aaa Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 16 Nov 2022 14:54:52 -0600 Subject: [PATCH] updates to astronvim installer --- home/private_dot_config/astronvim/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/home/private_dot_config/astronvim/install.sh b/home/private_dot_config/astronvim/install.sh index a42ebd5..0b3af9b 100644 --- a/home/private_dot_config/astronvim/install.sh +++ b/home/private_dot_config/astronvim/install.sh @@ -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 }