From a95ccd09a2c7cff435d915756abd5a2fe096fb9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Tue, 29 Dec 2015 14:44:32 +0100 Subject: [PATCH] Simplify fallback to global version file --- libexec/rbenv-version-file | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libexec/rbenv-version-file b/libexec/rbenv-version-file index 0cb8d554..0ea8d3aa 100755 --- a/libexec/rbenv-version-file +++ b/libexec/rbenv-version-file @@ -19,16 +19,10 @@ find_local_version_file() { return 1 } -find_global_version_file() { - local global_version_file="${RBENV_ROOT}/version" - - echo "$global_version_file" -} - if [ -n "$target_dir" ]; then find_local_version_file "$target_dir" else find_local_version_file "$RBENV_DIR" || { [ "$RBENV_DIR" != "$PWD" ] && find_local_version_file "$PWD" - } || find_global_version_file + } || echo "${RBENV_ROOT}/version" fi