0bda04011d
- /home/private_dot_config/git/template/hooks/run_after_ensure-executable.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_8-git-hooks.tmpl
13 lines
425 B
Cheetah
13 lines
425 B
Cheetah
{{- if (eq .host.distro.family "linux") -}}
|
|
#!/usr/bin/env bash
|
|
|
|
{{ includeTemplate "universal/profile" }}
|
|
{{ includeTemplate "universal/logg" }}
|
|
|
|
### Ensure ~/.config/git/template/hooks files are executable
|
|
logg info 'Ensuring '"$XDG_CONFIG_HOME"'/git/template/hooks files are executable'
|
|
find "$XDG_CONFIG_HOME/git/template/hooks" -mindepth 1 -maxdepth 1 -type f | while read HOOK; do
|
|
chmod +x "$HOOK"
|
|
done
|
|
|
|
{{ end -}}
|