diff --git a/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_before_90-install-packages.tmpl b/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_before_90-install-packages.tmpl index 778eb63e..74b68019 100644 --- a/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_before_90-install-packages.tmpl +++ b/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_before_90-install-packages.tmpl @@ -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