Skip to content

Commit

Permalink
Set RBENV_DEBUG=1 to see what's going on under the hood
Browse files Browse the repository at this point in the history
  • Loading branch information
sstephenson committed Sep 12, 2011
1 parent 2e3e141 commit 0632325
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions libexec/rbenv
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x

resolve_link() {
$(type -p greadlink readlink | head -1) $1
Expand Down
1 change: 1 addition & 0 deletions libexec/rbenv-commands
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x

if [ "$1" = "--sh" ]; then
sh=1
Expand Down
1 change: 1 addition & 0 deletions libexec/rbenv-exec
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x

RBENV_COMMAND="$1"
if [ -z "$RBENV_COMMAND" ]; then
Expand Down
1 change: 1 addition & 0 deletions libexec/rbenv-global
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x

RBENV_VERSION="$1"
RBENV_VERSION_FILE="${RBENV_ROOT}/global"
Expand Down
1 change: 1 addition & 0 deletions libexec/rbenv-help
@@ -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."
Expand Down
1 change: 1 addition & 0 deletions libexec/rbenv-init
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x

print=""
if [ "$1" = "-" ]; then
Expand Down
1 change: 1 addition & 0 deletions libexec/rbenv-local
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x

RBENV_VERSION="$1"
RBENV_VERSION_FILE=".rbenv-version"
Expand Down
1 change: 1 addition & 0 deletions libexec/rbenv-prefix
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x

if [ -n "$1" ]; then
RBENV_VERSION="$1"
Expand Down
1 change: 1 addition & 0 deletions libexec/rbenv-rehash
@@ -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"
Expand Down
1 change: 1 addition & 0 deletions libexec/rbenv-sh-shell
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x

version="$1"

Expand Down
1 change: 1 addition & 0 deletions libexec/rbenv-version
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x

echo "$(rbenv-version-name) (set by $(rbenv-version-origin))"
1 change: 1 addition & 0 deletions libexec/rbenv-version-file
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x

root="$(pwd)"
while [ -n "$root" ]; do
Expand Down
1 change: 1 addition & 0 deletions libexec/rbenv-version-file-read
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x

VERSION_FILE="$1"

Expand Down
1 change: 1 addition & 0 deletions libexec/rbenv-version-file-write
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x

RBENV_VERSION_FILE="$1"
RBENV_VERSION="$2"
Expand Down
1 change: 1 addition & 0 deletions libexec/rbenv-version-name
@@ -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)"
Expand Down
1 change: 1 addition & 0 deletions libexec/rbenv-version-origin
@@ -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"
Expand Down
1 change: 1 addition & 0 deletions libexec/rbenv-versions
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x

RBENV_VERSION_NAME="$(rbenv-version-name)"

Expand Down
1 change: 1 addition & 0 deletions libexec/rbenv-whence
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x

if [ "$1" = "--path" ]; then
print_paths="1"
Expand Down
1 change: 1 addition & 0 deletions libexec/rbenv-which
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x

expand_path() {
if [ ! -d "$1" ]; then
Expand Down

0 comments on commit 0632325

Please sign in to comment.