Merge pull request #904 from zsh-users/bug/fvm-bsd-sed-issue

Original sed code does not work on BSD sed with BRE
This commit is contained in:
Shohei YOSHIDA 2022-11-01 16:15:28 +09:00 committed by GitHub
commit 57c868face
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
_fvm_versions() {
local -a versions
versions=($(fvm releases | grep -E '[0-9]+\.[0-9]+.[0-9]+' | sed -e 's/^.* \(v\?[0-9][0-9]*\.[^ ]*\).*$/\1/g'))
versions=($(fvm releases | awk '/[0-9]+\.[0-9]+\.[0-9]+/{ sub(/^[^│]*│ /, ""); print $1}'))
versions=(master beta stable $versions)
_describe 'versions' versions
}