From 1096c12d7ceb1e3699cd3ce9839bb8dc86c4c01a Mon Sep 17 00:00:00 2001 From: Han Yeong-woo Date: Wed, 12 Jun 2024 05:40:21 +0900 Subject: [PATCH] Support leading `v` in version file --- libexec/nenv-version-file-read | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/nenv-version-file-read b/libexec/nenv-version-file-read index 1324529..e0db05a 100755 --- a/libexec/nenv-version-file-read +++ b/libexec/nenv-version-file-read @@ -10,7 +10,7 @@ if [ -e "$VERSION_FILE" ]; then # Be careful not to load it whole in case there's something crazy in it. IFS="${IFS}"$'\r' words=( $(cut -b 1-1024 "$VERSION_FILE") ) - version="${words[0]}" + version="${words[0]#v}" if [ -n "$version" ]; then echo "$version"