Update file run_after_ensure-executable.tmpl
This commit is contained in:
parent
08f39fc10c
commit
3d1eef0eb0
1 changed files with 13 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
||||||
|
{{- 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 -}}
|
Loading…
Reference in a new issue