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 74b68019..c7e211d6 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: {{ replace (replace (index .softwareGroups .host.softwareGroup | join " ") "[" "") "]" "" }} +# software: {{ index .softwareGroups .host.softwareGroup | toString | 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 {{ replace (replace (index .softwareGroups .host.softwareGroup | join " ") "[" "") "]" "" }} + logg info 'Installing packages defined in .chezmoidata.yaml under the .softwareGroups key' + logg info 'Installing: {{ index .softwareGroups .host.softwareGroup | toString | replace "[" "" | replace "]" "" }}' + install-program {{ index .softwareGroups .host.softwareGroup | toString | replace "[" "" | replace "]" "" }} else logg error '`zx` is not available' fi diff --git a/.local/share/chezmoi/home/dot_local/bin/executable_install-program b/.local/share/chezmoi/home/dot_local/bin/executable_install-program index b544bd7e..50cad212 100644 --- a/.local/share/chezmoi/home/dot_local/bin/executable_install-program +++ b/.local/share/chezmoi/home/dot_local/bin/executable_install-program @@ -602,7 +602,7 @@ async function installPackageList(packageManager, packages) { } } catch (e) { await $`logg error 'Possibly encountered an error while installing via \`${packageManager}\`'` - await $`logg info 'Error was encountered while installing: ${pkg}' + await $`logg info 'Error was encountered while installing: ${pkg}'` await $`logg info 'Proceeding with the installation..'` } }