mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
fix: use $MACHTYPE instead of arch command (#588)
This commit is contained in:
parent
e18f9a7da2
commit
bcf70e8268
|
|
@ -1557,7 +1557,7 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || {
|
|||
local junk="(md5|sig|asc|txt|vsix|sum|sha256*|pkg|.(apk|deb|json|rpm|sh(#e)))"
|
||||
filtered=( ${list[@]:#(#i)*${~junk}*} ) && (( $#filtered > 0 )) && list=( ${filtered[@]} )
|
||||
|
||||
local -a array=( $(print -rm "*($(arch)|${VENDOR}|)*~^*(${parts[1]}|${(L)$(uname)})*" $list[@]) )
|
||||
local -a array=( $(print -rm "*(${MACHTYPE}|${VENDOR}|)*~^*(${parts[1]}|${(L)$(uname)})*" $list[@]) )
|
||||
(( ${#array} > 0 )) && list=( ${array[@]} )
|
||||
+zi-log -- "{dbg} filtered ${#filtered} to ${#array} release assets"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue