Update .local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_before_90-install-packages.tmpl
This commit is contained in:
parent
103ab4096d
commit
d23eaae0f7
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue