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

This commit is contained in:
Brian Zalewski 2022-12-02 14:25:27 +00:00
parent d1e99cb439
commit 38d22a1239

View file

@ -3,13 +3,13 @@
{{- includeTemplate "universal/profile" }}
{{- includeTemplate "universal/logg" }}
# software: {{ index .softwareGroups .host.softwareGroup | join " " }}
# software: {{ index .softwareGroups .host.softwareGroup | join " " | replace "[" "" | replace "]" "" }}
if command -v install-program > /dev/null; then
if command -v zx > /dev/null; then
logg 'Installing packages defined in .chezmoidata.yaml under the .softwareGroups key'
logg 'Installing: {{ index .softwareGroups .host.softwareGroup | join " " }}'
install-program {{ index .softwareGroups .host.softwareGroup | join " " }}
install-program {{ index .softwareGroups .host.softwareGroup | join " " | replace "[" "" | replace "]" "" }}
else
logg error '`zx` is not available'
fi