Mercurial > dotfiles
diff .chezmoiscripts/run_onchange_after_apply-vivid.sh.tmpl @ 662:b137de67217b
fix issues with chezmoiscripts
author | zegervdv <zegervdv@me.com> |
---|---|
date | Mon, 26 Sep 2022 14:26:48 +0000 |
parents | 407d461cd377 |
children |
line wrap: on
line diff
--- a/.chezmoiscripts/run_onchange_after_apply-vivid.sh.tmpl Sun Sep 25 20:11:45 2022 +0000 +++ b/.chezmoiscripts/run_onchange_after_apply-vivid.sh.tmpl Mon Sep 26 14:26:48 2022 +0000 @@ -3,5 +3,7 @@ # colors hash: {{ include "dot_config/vivid/themes/espresso.yml" | sha256sum }} -vivid generate espresso > {{ joinPath .chezmoi.sourceDir "dot_lscolors" }} +if [ -x "$(command -v vivid)" ]; then + vivid generate espresso > {{ joinPath .chezmoi.sourceDir "dot_lscolors" }} +fi {{ end -}}