Update .local/share/chezmoi/home/dot_local/bin/executable_provision, .local/bin/provision, .local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_before_90-install-packages.tmpl
This commit is contained in:
parent
064462e07a
commit
633b067677
3 changed files with 5 additions and 5 deletions
|
@ -190,7 +190,7 @@ done
|
|||
find /usr/local/src/hiawatha -maxdepth 1 -mindepth 1 -type f | while read FILE; do
|
||||
BASENAME="$(basename "$FILE")"
|
||||
# Prevent repository-specific files from being copied over to user's HOME
|
||||
if [[ "$BASENAME" != *'.md' ]] && [[ "$BASENAME" != *'.sh' ]] && [ "$BASENAME" != 'logo.png' ] && [ "$BASENAME" != '.gitlab-ci.yml' ]; then
|
||||
if [[ "$BASENAME" != *'.md' ]] && [[ "$BASENAME" != *'.sh' ]] && [ "$BASENAME" != '.chezmoiroot' ] && [ "$BASENAME" != 'logo.png' ] && [ "$BASENAME" != '.gitlab-ci.yml' ]; then
|
||||
cp "$FILE" "$HOME/$BASENAME"
|
||||
chmod 600 "$HOME/$BASENAME"
|
||||
fi
|
||||
|
|
|
@ -5,14 +5,14 @@
|
|||
|
||||
# software: {{ index .softwareGroups .host.softwareGroup | join " " }}
|
||||
|
||||
if command -v install-software > /dev/null; then
|
||||
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-software {{ index .softwareGroups .host.softwareGroup | join " " }}
|
||||
install-program {{ index .softwareGroups .host.softwareGroup | join " " }}
|
||||
else
|
||||
logg error '`zx` is not available'
|
||||
fi
|
||||
else
|
||||
logg error '`install-software` is not in the PATH. It should be located in ~/.local/bin.'
|
||||
logg error '`install-program` is not in the PATH. It should be located in ~/.local/bin.'
|
||||
fi
|
||||
|
|
|
@ -190,7 +190,7 @@ done
|
|||
find /usr/local/src/hiawatha -maxdepth 1 -mindepth 1 -type f | while read FILE; do
|
||||
BASENAME="$(basename "$FILE")"
|
||||
# Prevent repository-specific files from being copied over to user's HOME
|
||||
if [[ "$BASENAME" != *'.md' ]] && [[ "$BASENAME" != *'.sh' ]] && [ "$BASENAME" != 'logo.png' ] && [ "$BASENAME" != '.gitlab-ci.yml' ]; then
|
||||
if [[ "$BASENAME" != *'.md' ]] && [[ "$BASENAME" != *'.sh' ]] && [ "$BASENAME" != '.chezmoiroot' ] && [ "$BASENAME" != 'logo.png' ] && [ "$BASENAME" != '.gitlab-ci.yml' ]; then
|
||||
cp "$FILE" "$HOME/$BASENAME"
|
||||
chmod 600 "$HOME/$BASENAME"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue