From 906a6acc10ce22cdc4f8f3e180b0fe2fa283b44e Mon Sep 17 00:00:00 2001 From: Richie Thomas Date: Tue, 11 Jul 2023 11:38:36 -0400 Subject: [PATCH] version-file docs update (#1512) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update rbenv-version-file docs to indicate that the returned version file may or may not actually exist. Co-authored-by: Mislav Marohnić --- libexec/rbenv-version-file | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libexec/rbenv-version-file b/libexec/rbenv-version-file index a8335950..cc675ab5 100755 --- a/libexec/rbenv-version-file +++ b/libexec/rbenv-version-file @@ -1,6 +1,12 @@ #!/usr/bin/env bash # Usage: rbenv version-file [] # Summary: Detect the file that sets the current rbenv version +# +# Detects and prints the location of a `.ruby-version` file that sets the +# version for the current working directory. If no file found, this prints +# the location of the global version file, even if that file does +# not exist. + set -e [ -n "$RBENV_DEBUG" ] && set -x