Update file run_onchange_after_6-bin-symlink.tmpl
This commit is contained in:
parent
354a411ded
commit
2e1edd402a
1 changed files with 13 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
||||||
|
{{- if (ne .host.distro.family "windows") -}}
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
{{ includeTemplate "universal/profile" }}
|
||||||
|
{{ includeTemplate "universal/logg" }}
|
||||||
|
|
||||||
|
### Symlink python3 to python if it is unavailable
|
||||||
|
if ! command -v python > /dev/null && command -v python3 > /dev/null; then
|
||||||
|
logg info 'Symlinking `python3` to `python` since the latter is unavailable'
|
||||||
|
sudo ln -s "$(which python3)" /usr/local/bin/python
|
||||||
|
fi
|
||||||
|
|
||||||
|
{{ end -}}
|
Loading…
Reference in a new issue