diff --git a/home/.chezmoiscripts/run_onchange_after_10-install-packages.sh.tmpl b/home/.chezmoiscripts/run_onchange_after_10-install-packages.sh.tmpl index dfa9b32..01c347a 100644 --- a/home/.chezmoiscripts/run_onchange_after_10-install-packages.sh.tmpl +++ b/home/.chezmoiscripts/run_onchange_after_10-install-packages.sh.tmpl @@ -36,7 +36,7 @@ packages=( {{- end}} ## Install yay - if [ ! exist "yay" ]; then + if [ ! $(command -v yay) ]; then log "installing yay" {{- if ne .chezmoi.username "root" }} sudo pacman -S --needed --noconfirm git base-devel