From 3e46a875d43cd82020e5ec0772880cdc9dc405d4 Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Tue, 1 Nov 2022 15:59:07 +0900 Subject: [PATCH] Original sed code does not work on BSD sed with BRE --- src/_fvm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_fvm b/src/_fvm index 1e69388..8053d34 100644 --- a/src/_fvm +++ b/src/_fvm @@ -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 }