Update file run_onchange_after_3-system-bin.tmpl

This commit is contained in:
Brian Zalewski 2023-01-10 08:58:45 +00:00
parent 0c55b948f0
commit 255e37e15d

View file

@ -0,0 +1,10 @@
{{- if (eq .host.distro.family "linux") -}}
#!/usr/bin/env bash
### 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 -}}