Skip to content

Commit

Permalink
ci(docker-build): remove bashisms from /etc/profile.d/python.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
vpayno committed Jan 16, 2024
1 parent d4d56d6 commit 0760e6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/citools/python/python-setup-install
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,20 @@ main() {
export PYENV_ROOT="/usr/local/pyenv"
if [[ ! \${PATH} =~ \${PYENV_ROOT}/bin ]]; then
if echo \${PATH} | grep -q \${PYENV_ROOT}/bin; then
export PATH="\${PYENV_ROOT}/bin:\${PATH}"
fi
if command -v pyenv 1>/dev/null 2>&1; then
if [[ ! \${PATH} =~ \${PYENV_ROOT}/shims ]]; then
if echo \${PATH} | grep -q \${PYENV_ROOT}/shims; then
eval "\$(pyenv init --path)"
fi
if [[ -z \${PYENV_SHELL} ]]; then
if [ -z \${PYENV_SHELL} ]; then
eval "\$(pyenv init -)"
fi
if [[ ! \${PATH} =~ \${PYENV_ROOT}/plugins/pyenv-virtualenv/shims ]]; then
if echo \${PATH} | grep -q \${PYENV_ROOT}/plugins/pyenv-virtualenv/shims; then
eval "\$(pyenv virtualenv-init -)"
fi
fi
Expand Down

0 comments on commit 0760e6f

Please sign in to comment.