fix: use $MACHTYPE instead of arch command (#588)

This commit is contained in:
Philipp Schmitt 2023-10-31 17:39:56 +01:00 committed by GitHub
parent e18f9a7da2
commit bcf70e8268
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"