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:35:21 +00:00
parent 103ab4096d
commit d23eaae0f7

View file

@ -3,13 +3,13 @@
{{- includeTemplate "universal/profile" }}
{{- includeTemplate "universal/logg" }}
# software: {{ index .softwareGroups .host.softwareGroup | join " " | replace "[" "" | replace "]" "" }}
# software: {{ replace (replace (index .softwareGroups .host.softwareGroup | join " ") "[" "") "]" "" }}
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 " " | replace "[" "" | replace "]" "" }}
install-program {{ replace (replace (index .softwareGroups .host.softwareGroup | join " ") "[" "") "]" "" }}
else
logg error '`zx` is not available'
fi