Update dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_before_90-install-packages.tmpl
This commit is contained in:
parent
d5fa055235
commit
7d4aea2855
1 changed files with 3 additions and 2 deletions
|
@ -3,12 +3,13 @@
|
||||||
{{- includeTemplate "universal/profile" }}
|
{{- includeTemplate "universal/profile" }}
|
||||||
{{- includeTemplate "universal/logg" }}
|
{{- includeTemplate "universal/logg" }}
|
||||||
|
|
||||||
# software: {{ join (index .softwareGroups .host.softwareGroup) " " }}
|
# software: {{ index .softwareGroups .host.softwareGroup | join " " }}
|
||||||
|
|
||||||
if command -v install-software > /dev/null; then
|
if command -v install-software > /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 'Installing packages defined in .chezmoidata.yaml under the .softwareGroups key'
|
||||||
zx install-software {{ join (index .softwareGroups .host.softwareGroup) " " }}
|
logg 'Installing: {{ index .softwareGroups .host.softwareGroup | join " " }}'
|
||||||
|
zx install-software {{ index .softwareGroups .host.softwareGroup | join " " }}
|
||||||
else
|
else
|
||||||
logg error '`zx` is not available'
|
logg error '`zx` is not available'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue