From f96afe76f1704b43d1ffafb4ca150eb98498e588 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 20 Mar 2024 23:08:15 +0100 Subject: [PATCH] Fix `pyenv` installation --- scripts/Common/Software/pyenv/install.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/Common/Software/pyenv/install.sh b/scripts/Common/Software/pyenv/install.sh index abf2c1fd..1e9bd61c 100755 --- a/scripts/Common/Software/pyenv/install.sh +++ b/scripts/Common/Software/pyenv/install.sh @@ -1,10 +1,5 @@ #!/bin/bash +pushd "${BASH_SOURCE%/*}" > /dev/null; curl https://pyenv.run | bash; -{ - echo ""; - echo "# pyenv"; - echo 'export PYENV_ROOT="$HOME/.pyenv"'; - echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"'; - echo 'eval "$(pyenv init -)"'; - echo 'eval "$(pyenv virtualenv-init -)"'; -} >> ~/.bashrc; +. "../../Config/pyenv/install.sh"; +popd > /dev/null;