Original sed code does not work on BSD sed with BRE

This commit is contained in:
Shohei YOSHIDA 2022-11-01 15:59:07 +09:00
parent b4ec85ede7
commit 3e46a875d4
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
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
}