Update dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_before_90-install-packages.tmpl
This commit is contained in:
parent
d32049cc42
commit
73b55f4120
1 changed files with 7 additions and 3 deletions
|
@ -6,8 +6,12 @@
|
||||||
# software: {{ join (index .softwareGroups .host.softwareGroup) " " }}
|
# software: {{ join (index .softwareGroups .host.softwareGroup) " " }}
|
||||||
|
|
||||||
if command -v install-software > /dev/null; then
|
if command -v install-software > /dev/null; then
|
||||||
logg 'Installing packages defined in .chezmoidata.yaml under the .softwareGroups key'
|
if command -v zx > /dev/null; then
|
||||||
install-software {{ join (index .softwareGroups .host.softwareGroup) " " }}
|
logg 'Installing packages defined in .chezmoidata.yaml under the .softwareGroups key'
|
||||||
|
zx install-software {{ join (index .softwareGroups .host.softwareGroup) " " }}
|
||||||
|
else
|
||||||
|
logg error '`zx` is not available'
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
logg error '`install-software` is not in the PATH'
|
logg error '`install-software` is not in the PATH. It should be located in ~/.local/bin.'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue