Set RBENV_DEBUG=1 to see what's going on under the hood

This commit is contained in:
Sam Stephenson 2011-09-12 10:11:59 -05:00
parent 2e3e141d2e
commit 0632325a43
19 changed files with 19 additions and 0 deletions

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
resolve_link() {
$(type -p greadlink readlink | head -1) $1

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
if [ "$1" = "--sh" ]; then
sh=1

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
RBENV_COMMAND="$1"
if [ -z "$RBENV_COMMAND" ]; then

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
RBENV_VERSION="$1"
RBENV_VERSION_FILE="${RBENV_ROOT}/global"

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
print_set_version() {
echo "<version> should be a string matching a Ruby version known by rbenv."

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
print=""
if [ "$1" = "-" ]; then

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
RBENV_VERSION="$1"
RBENV_VERSION_FILE=".rbenv-version"

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
if [ -n "$1" ]; then
RBENV_VERSION="$1"

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
SHIM_PATH="${RBENV_ROOT}/shims"
PROTOTYPE_SHIM_PATH="${SHIM_PATH}/.rbenv-shim"

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
version="$1"

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
echo "$(rbenv-version-name) (set by $(rbenv-version-origin))"

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
root="$(pwd)"
while [ -n "$root" ]; do

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
VERSION_FILE="$1"

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
RBENV_VERSION_FILE="$1"
RBENV_VERSION="$2"

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
if [ -z "$RBENV_VERSION" ]; then
RBENV_VERSION_FILE="$(rbenv-version-file)"

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
if [ -n "$RBENV_VERSION" ]; then
echo "RBENV_VERSION environment variable"

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
RBENV_VERSION_NAME="$(rbenv-version-name)"

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
if [ "$1" = "--path" ]; then
print_paths="1"

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
expand_path() {
if [ ! -d "$1" ]; then