From 73b55f41201c2d694e822d4c0f415da1ae80611f Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Mon, 28 Nov 2022 01:34:41 +0000 Subject: [PATCH] Update dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_before_90-install-packages.tmpl --- .../run_onchange_before_90-install-packages.tmpl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_before_90-install-packages.tmpl b/dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_before_90-install-packages.tmpl index b556b18a..ac9d11c2 100644 --- a/dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_before_90-install-packages.tmpl +++ b/dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_before_90-install-packages.tmpl @@ -6,8 +6,12 @@ # software: {{ join (index .softwareGroups .host.softwareGroup) " " }} if command -v install-software > /dev/null; then - logg 'Installing packages defined in .chezmoidata.yaml under the .softwareGroups key' - install-software {{ join (index .softwareGroups .host.softwareGroup) " " }} + if command -v zx > /dev/null; then + logg 'Installing packages defined in .chezmoidata.yaml under the .softwareGroups key' + zx install-software {{ join (index .softwareGroups .host.softwareGroup) " " }} + else + logg error '`zx` is not available' + fi else - logg error '`install-software` is not in the PATH' + logg error '`install-software` is not in the PATH. It should be located in ~/.local/bin.' fi