Update .local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_before_90-install-packages.tmpl, .local/share/chezmoi/home/dot_local/bin/executable_install-program

This commit is contained in:
Brian Zalewski 2022-12-02 16:52:51 +00:00
parent 0acef3f6fc
commit d0812639cf
2 changed files with 5 additions and 5 deletions

View file

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

View file

@ -602,7 +602,7 @@ async function installPackageList(packageManager, packages) {
} }
} catch (e) { } catch (e) {
await $`logg error 'Possibly encountered an error while installing via \`${packageManager}\`'` 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..'` await $`logg info 'Proceeding with the installation..'`
} }
} }