5356bcd450
- /home/.chezmoiscripts/universal/run_onchange_after_4-environment-profile.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_3-system-bin.tmpl
13 lines
488 B
Cheetah
13 lines
488 B
Cheetah
{{- if (eq .host.distro.family "linux") -}}
|
|
#!/usr/bin/env bash
|
|
|
|
{{ includeTemplate "universal/profile" }}
|
|
{{ includeTemplate "universal/logg" }}
|
|
|
|
### Copy ~/.local/bin/squash-symlink to /usr/local/bin/squash-symlink
|
|
if [ ! -f /usr/local/bin/squash-symlink ] && [ -f "$HOME/.local/bin/squash-symlink" ]; then
|
|
logg info 'Copying ~/.local/bin/squash-symlink to /usr/local/bin/squash-symlink'
|
|
sudo cp -f "$HOME/.local/bin/squash-symlink" /usr/local/bin/squash-symlink
|
|
fi
|
|
|
|
{{ end -}}
|