Merge pull request #715 from syohex/syohex/yarn-posix

Don't use sed gnu extension, use POSIX syntax
This commit is contained in:
Shohei YOSHIDA 2020-05-09 19:36:37 +09:00 committed by GitHub
commit 3d6bbc108e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ _yarn_add_files() {
} }
_yarn_workspaces() { _yarn_workspaces() {
local -a workspaces=(${(@f)$(yarn workspaces info |sed -n -r -e 's/^ "([^"]+)": \{/\1/p')}) local -a workspaces=(${(@f)$(yarn workspaces info |sed -n -e 's/^ "\([^"]*\)": {/\1/p')})
_describe 'workspace' workspaces _describe 'workspace' workspaces
} }