install.fairie/home/.chezmoiscripts/universal/run_onchange_after_3-system-bin.tmpl
Brian Zalewski 5356bcd450 Update 2 files
- /home/.chezmoiscripts/universal/run_onchange_after_4-environment-profile.tmpl
- /home/.chezmoiscripts/universal/run_onchange_after_3-system-bin.tmpl
2023-01-10 08:59:38 +00:00

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