From 87dd5fe2c03377e41ecf765d6d273e2bd8b5b995 Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Tue, 17 Nov 2015 14:27:05 -0500 Subject: [PATCH] indentation --- libexec/rbenv | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/libexec/rbenv b/libexec/rbenv index dd68cdfe..8d2fc732 100755 --- a/libexec/rbenv +++ b/libexec/rbenv @@ -28,26 +28,26 @@ if enable -f "${BASH_SOURCE%/*}"/../libexec/rbenv-realpath.dylib realpath 2>/dev else [ -z "$RBENV_NATIVE_EXT" ] || abort "failed to load \`realpath' builtin" -READLINK=$(type -p greadlink readlink | head -1) -[ -n "$READLINK" ] || abort "cannot find readlink - are you missing GNU coreutils?" + READLINK=$(type -p greadlink readlink | head -1) + [ -n "$READLINK" ] || abort "cannot find readlink - are you missing GNU coreutils?" -resolve_link() { - $READLINK "$1" -} + resolve_link() { + $READLINK "$1" + } -abs_dirname() { - local cwd="$(pwd)" - local path="$1" + abs_dirname() { + local cwd="$(pwd)" + local path="$1" - while [ -n "$path" ]; do - cd "${path%/*}" - local name="${path##*/}" - path="$(resolve_link "$name" || true)" - done + while [ -n "$path" ]; do + cd "${path%/*}" + local name="${path##*/}" + path="$(resolve_link "$name" || true)" + done - pwd - cd "$cwd" -} + pwd + cd "$cwd" + } fi if [ -z "${RBENV_ROOT}" ]; then