Update dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_before_90-install-packages.tmpl

This commit is contained in:
Brian Zalewski 2022-11-28 01:43:52 +00:00
parent d5fa055235
commit 7d4aea2855

View file

@ -3,12 +3,13 @@
{{- includeTemplate "universal/profile" }}
{{- includeTemplate "universal/logg" }}
# software: {{ join (index .softwareGroups .host.softwareGroup) " " }}
# software: {{ index .softwareGroups .host.softwareGroup | join " " }}
if command -v install-software > /dev/null; then
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) " " }}
logg 'Installing: {{ index .softwareGroups .host.softwareGroup | join " " }}'
zx install-software {{ index .softwareGroups .host.softwareGroup | join " " }}
else
logg error '`zx` is not available'
fi