Logo
Explore Help
Sign In
Mirrors/pyenv
1
0
Fork 0
You've already forked pyenv
mirror of https://github.com/pyenv/pyenv.git synced 2026-02-06 02:37:36 +09:00
Code Issues Packages Projects Releases Wiki Activity
pyenv/libexec/rbenv-version-origin

10 lines
166 B
Plaintext
Raw Normal View History

Fix argument that cannot be sent to bash via env /usr/bin/env seems to have problems with arguments to bash on some platforms. To bypass this, use set -e instead.
2011-08-12 11:33:45 +02:00
#!/usr/bin/env bash
set -e
Set RBENV_DEBUG=1 to see what's going on under the hood
2011-09-12 10:11:59 -05:00
[ -n "$RBENV_DEBUG" ] && set -x
Split rbenv-version into rbenv-version-name and rbenv-version-origin, update versions, prefix, and which appropriately
2011-08-09 16:41:35 -04:00
Extract rbenv-version-file{,-read,-write}
2011-08-18 14:11:40 -05:00
if [ -n "$RBENV_VERSION" ]; then
Split rbenv-version into rbenv-version-name and rbenv-version-origin, update versions, prefix, and which appropriately
2011-08-09 16:41:35 -04:00
echo "RBENV_VERSION environment variable"
Extract rbenv-version-file{,-read,-write}
2011-08-18 14:11:40 -05:00
else
rbenv-version-file
Split rbenv-version into rbenv-version-name and rbenv-version-origin, update versions, prefix, and which appropriately
2011-08-09 16:41:35 -04:00
fi
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 31ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API