mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 17:49:53 +00:00
feat(pyenv+macos): install Command Line Tools for macOS
This commit is contained in:
@@ -4,6 +4,13 @@ __init_pyenv() {
|
||||
set -e
|
||||
set -u
|
||||
|
||||
b_os="$(uname -s)"
|
||||
if test "${b_os}" = 'Darwin'; then
|
||||
if ! test -x /Library/Developer/CommandLineTools/usr/bin/git; then
|
||||
"$HOME/.local/bin/webi" commandlinetools
|
||||
fi
|
||||
fi
|
||||
|
||||
curl -fsSL https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
|
||||
|
||||
if [ ! -f ~/.bashrc ] || ! grep -q 'pyenv init' ~/.bashrc; then
|
||||
|
||||
Reference in New Issue
Block a user