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:
Brian Zalewski 2022-11-30 09:21:36 +00:00
parent 064462e07a
commit 633b067677
3 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -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